summaryrefslogtreecommitdiff
path: root/sleekxmpp
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2011-09-01 10:44:14 -0700
committerLance Stout <lancestout@gmail.com>2011-09-01 10:44:14 -0700
commit993829b23f923bc76aa0680977b34995105752ae (patch)
treec9f9fcd029d86150f705ed5b488237e7c531933f /sleekxmpp
parent002257b8208e343661a68710a3ee936067bfdba0 (diff)
downloadslixmpp-993829b23f923bc76aa0680977b34995105752ae.tar.gz
slixmpp-993829b23f923bc76aa0680977b34995105752ae.tar.bz2
slixmpp-993829b23f923bc76aa0680977b34995105752ae.tar.xz
slixmpp-993829b23f923bc76aa0680977b34995105752ae.zip
Add tests for pubsub subscription options.
Diffstat (limited to 'sleekxmpp')
-rw-r--r--sleekxmpp/plugins/xep_0060/pubsub.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/sleekxmpp/plugins/xep_0060/pubsub.py b/sleekxmpp/plugins/xep_0060/pubsub.py
index c0038cee..788d3397 100644
--- a/sleekxmpp/plugins/xep_0060/pubsub.py
+++ b/sleekxmpp/plugins/xep_0060/pubsub.py
@@ -120,6 +120,8 @@ class xep_0060(base_plugin):
subscribee = self.xmpp.boundjid
iq['pubsub']['subscribe']['jid'] = subscribee
+ if options is not None:
+ iq['pubsub']['options'].append(options)
return iq.send(block=block, callback=callback, timeout=timeout)
def unsubscribe(self, jid, node, subid=None, bare=True, subscribee=None,