diff options
author | Lance Stout <lancestout@gmail.com> | 2013-01-04 00:25:46 -0800 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2013-01-04 00:25:46 -0800 |
commit | e5750b368e1c158a610cea95c541b3f64bdee4b0 (patch) | |
tree | 92e8de7a12cfcf9da818b74bda681827a9877433 /sleekxmpp/plugins/xep_0223.py | |
parent | 2c04ae084ca2233f45776b32614b1e575db93449 (diff) | |
download | slixmpp-e5750b368e1c158a610cea95c541b3f64bdee4b0.tar.gz slixmpp-e5750b368e1c158a610cea95c541b3f64bdee4b0.tar.bz2 slixmpp-e5750b368e1c158a610cea95c541b3f64bdee4b0.tar.xz slixmpp-e5750b368e1c158a610cea95c541b3f64bdee4b0.zip |
Fix setting publish options for pubsub storage.
Diffstat (limited to 'sleekxmpp/plugins/xep_0223.py')
-rw-r--r-- | sleekxmpp/plugins/xep_0223.py | 5 |
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, |