summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins/xep_0060
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2012-07-28 01:06:21 -0700
committerLance Stout <lancestout@gmail.com>2012-07-28 01:06:21 -0700
commit5ae6c8f8faefef3bd0c7d8e4caf0a2071d76382d (patch)
treed0a8c47567e9884971313f846180f7751d348a60 /sleekxmpp/plugins/xep_0060
parent54656b331a48b6bac140fcd90b88ab21e3bd67a4 (diff)
downloadslixmpp-5ae6c8f8faefef3bd0c7d8e4caf0a2071d76382d.tar.gz
slixmpp-5ae6c8f8faefef3bd0c7d8e4caf0a2071d76382d.tar.bz2
slixmpp-5ae6c8f8faefef3bd0c7d8e4caf0a2071d76382d.tar.xz
slixmpp-5ae6c8f8faefef3bd0c7d8e4caf0a2071d76382d.zip
Add support for XEP-0131: Standard Headers and Internet Metadata
Diffstat (limited to 'sleekxmpp/plugins/xep_0060')
-rw-r--r--sleekxmpp/plugins/xep_0060/pubsub.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/sleekxmpp/plugins/xep_0060/pubsub.py b/sleekxmpp/plugins/xep_0060/pubsub.py
index 387c5a0f..952cad85 100644
--- a/sleekxmpp/plugins/xep_0060/pubsub.py
+++ b/sleekxmpp/plugins/xep_0060/pubsub.py
@@ -26,7 +26,7 @@ class XEP_0060(BasePlugin):
name = 'xep_0060'
description = 'XEP-0060: Publish-Subscribe'
- dependencies = set(['xep_0030', 'xep_0004'])
+ dependencies = set(['xep_0030', 'xep_0004', 'xep_0082', 'xep_0131'])
stanza = stanza
def plugin_init(self):
@@ -53,6 +53,8 @@ class XEP_0060(BasePlugin):
StanzaPath('message/pubsub_event/subscription'),
self._handle_event_subscription))
+ self.xmpp['xep_0131'].supported_headers.add('SubID')
+
def plugin_end(self):
self.xmpp.remove_handler('Pubsub Event: Items')
self.xmpp.remove_handler('Pubsub Event: Purge')