summaryrefslogtreecommitdiff
path: root/slixmpp/plugins/xep_0223.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2018-02-11 16:42:59 +0100
committermathieui <mathieui@mathieui.net>2018-02-11 16:42:59 +0100
commite1777263873e96d7189b85a3c57197ab6176fae7 (patch)
tree258ceedbb75dfd51e536e998b0e69cc524dd706b /slixmpp/plugins/xep_0223.py
parent20e88fda50832c8a3412586da58f19df2325fef7 (diff)
downloadslixmpp-e1777263873e96d7189b85a3c57197ab6176fae7.tar.gz
slixmpp-e1777263873e96d7189b85a3c57197ab6176fae7.tar.bz2
slixmpp-e1777263873e96d7189b85a3c57197ab6176fae7.tar.xz
slixmpp-e1777263873e96d7189b85a3c57197ab6176fae7.zip
Fix usage of the 0004 plugin interface
form['fields'] is an ordered list of fields while most plugins expect a dict there. Fixes, among other things, a caps bug.
Diffstat (limited to 'slixmpp/plugins/xep_0223.py')
-rw-r--r--slixmpp/plugins/xep_0223.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/slixmpp/plugins/xep_0223.py b/slixmpp/plugins/xep_0223.py
index 566e430b..65d591f6 100644
--- a/slixmpp/plugins/xep_0223.py
+++ b/slixmpp/plugins/xep_0223.py
@@ -78,7 +78,7 @@ class XEP_0223(BasePlugin):
for field, value in self.profile.items():
if field not in fields:
options.add_field(var=field)
- options['fields'][field]['value'] = value
+ options.get_fields()[field]['value'] = value
return self.xmpp['xep_0163'].publish(stanza, node, options=options,
ifrom=ifrom, callback=callback,