summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins/xep_0184/reciept.py
diff options
context:
space:
mode:
Diffstat (limited to 'sleekxmpp/plugins/xep_0184/reciept.py')
-rw-r--r--sleekxmpp/plugins/xep_0184/reciept.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/sleekxmpp/plugins/xep_0184/reciept.py b/sleekxmpp/plugins/xep_0184/reciept.py
index 0cbc833d..fd3f24e7 100644
--- a/sleekxmpp/plugins/xep_0184/reciept.py
+++ b/sleekxmpp/plugins/xep_0184/reciept.py
@@ -8,25 +8,25 @@
from sleekxmpp.stanza import Message
from sleekxmpp.xmlstream import register_stanza_plugin
-from sleekxmpp.plugins.base import base_plugin
+from sleekxmpp.plugins import BasePlugin
from sleekxmpp.plugins.xep_0184 import stanza, Request, Received
-class xep_0184(base_plugin):
+class XEP_0184(BasePlugin):
+
"""
XEP-0184: Message Delivery Receipts
"""
- def plugin_init(self):
- self.xep = '0184'
- self.description = 'Message Delivery Receipts'
- self.stanza = stanza
+ name = 'xep_0184'
+ description = 'XEP-0184: Message Delivery Receipts'
+ dependencies = set(['xep_0030'])
+ stanza = stanza
+ def plugin_init(self):
register_stanza_plugin(Message, Request)
register_stanza_plugin(Message, Received)
- def post_init(self):
- base_plugin.post_init(self)
self.xmpp.plugin['xep_0030'].add_feature('urn:xmpp:receipts')
def ack(self, message):