diff options
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2016-09-20 16:34:48 +0900 |
---|---|---|
committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2016-09-20 16:34:48 +0900 |
commit | b8e091233e152572786080f21cdc8d1b844912ed (patch) | |
tree | 1f2112e954c83de2b589949a63475c15394c7b10 /slixmpp/plugins/xep_0045.py | |
parent | 0edeefd977775ecb1f6c8b114008532b4629041f (diff) | |
download | slixmpp-b8e091233e152572786080f21cdc8d1b844912ed.tar.gz slixmpp-b8e091233e152572786080f21cdc8d1b844912ed.tar.bz2 slixmpp-b8e091233e152572786080f21cdc8d1b844912ed.tar.xz slixmpp-b8e091233e152572786080f21cdc8d1b844912ed.zip |
XEP-0004: Remove deprecated getXML() and fromXML() methods.
Diffstat (limited to 'slixmpp/plugins/xep_0045.py')
-rw-r--r-- | slixmpp/plugins/xep_0045.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/slixmpp/plugins/xep_0045.py b/slixmpp/plugins/xep_0045.py index e8d2b8cb..7589d3cf 100644 --- a/slixmpp/plugins/xep_0045.py +++ b/slixmpp/plugins/xep_0045.py @@ -222,7 +222,7 @@ class XEP_0045(BasePlugin): if ifrom is not None: iq['from'] = ifrom query = ET.Element('{http://jabber.org/protocol/muc#owner}query') - form = form.getXML('submit') + form['type'] = 'submit' query.append(form) iq.append(query) # For now, swallow errors to preserve existing API @@ -373,8 +373,8 @@ class XEP_0045(BasePlugin): def setRoomConfig(self, room, config, ifrom=''): query = ET.Element('{http://jabber.org/protocol/muc#owner}query') - x = config.getXML('submit') - query.append(x) + config['type'] = 'submit' + query.append(config) iq = self.xmpp.make_iq_set(query) iq['to'] = room iq['from'] = ifrom |