summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins/xep_0223.py
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2013-01-04 03:00:43 -0800
committerLance Stout <lancestout@gmail.com>2013-01-04 03:00:43 -0800
commit0e7486d7b49fb3f3c6e573ac972dfadc03c7ca08 (patch)
tree74f47de958471c492a7d12afe1e59729a52e3909 /sleekxmpp/plugins/xep_0223.py
parentef76f923ad885d8faa67e88d76704cbe8253b153 (diff)
parent6c0afb87b919f1f0321146323e917480851b2d63 (diff)
downloadslixmpp-0e7486d7b49fb3f3c6e573ac972dfadc03c7ca08.tar.gz
slixmpp-0e7486d7b49fb3f3c6e573ac972dfadc03c7ca08.tar.bz2
slixmpp-0e7486d7b49fb3f3c6e573ac972dfadc03c7ca08.tar.xz
slixmpp-0e7486d7b49fb3f3c6e573ac972dfadc03c7ca08.zip
Merge branch 'master' into develop
Diffstat (limited to 'sleekxmpp/plugins/xep_0223.py')
-rw-r--r--sleekxmpp/plugins/xep_0223.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/sleekxmpp/plugins/xep_0223.py b/sleekxmpp/plugins/xep_0223.py
index ab99f277..abbecfc7 100644
--- a/sleekxmpp/plugins/xep_0223.py
+++ b/sleekxmpp/plugins/xep_0223.py
@@ -76,10 +76,11 @@ class XEP_0223(BasePlugin):
ftype='hidden',
value='http://jabber.org/protocol/pubsub#publish-options')
+ fields = options['fields']
for field, value in self.profile.items():
- if field not in options.fields:
+ if field not in fields:
options.add_field(var=field)
- options.fields[field]['value'] = value
+ options['fields'][field]['value'] = value
return self.xmpp['xep_0163'].publish(stanza, node,
options=options,