summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins/xep_0045.py
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2013-02-10 11:47:58 -0800
committerLance Stout <lancestout@gmail.com>2013-02-10 11:47:58 -0800
commitd4dde89ea65ca1e03ee45e5b2b50a09747271dde (patch)
tree53d0e8de5c2d28cd2b75aee43aeedb08d71e684e /sleekxmpp/plugins/xep_0045.py
parent774bf35fabf26b7baf9e03af3e44188cc92fb6f4 (diff)
downloadslixmpp-d4dde89ea65ca1e03ee45e5b2b50a09747271dde.tar.gz
slixmpp-d4dde89ea65ca1e03ee45e5b2b50a09747271dde.tar.bz2
slixmpp-d4dde89ea65ca1e03ee45e5b2b50a09747271dde.tar.xz
slixmpp-d4dde89ea65ca1e03ee45e5b2b50a09747271dde.zip
Remove old_* plugins.
Diffstat (limited to 'sleekxmpp/plugins/xep_0045.py')
-rw-r--r--sleekxmpp/plugins/xep_0045.py23
1 files changed, 1 insertions, 22 deletions
diff --git a/sleekxmpp/plugins/xep_0045.py b/sleekxmpp/plugins/xep_0045.py
index cba07702..b823e76d 100644
--- a/sleekxmpp/plugins/xep_0045.py
+++ b/sleekxmpp/plugins/xep_0045.py
@@ -198,30 +198,9 @@ class XEP_0045(BasePlugin):
if entry is not None and entry['jid'].full == jid:
return nick
- def getRoomForm(self, room, ifrom=None):
- iq = self.xmpp.makeIqGet()
- iq['to'] = room
- if ifrom is not None:
- iq['from'] = ifrom
- query = ET.Element('{http://jabber.org/protocol/muc#owner}query')
- iq.append(query)
- # For now, swallow errors to preserve existing API
- try:
- result = iq.send()
- except IqError:
- return False
- except IqTimeout:
- return False
- xform = result.xml.find('{http://jabber.org/protocol/muc#owner}query/{jabber:x:data}x')
- if xform is None: return False
- form = self.xmpp.plugin['old_0004'].buildForm(xform)
- return form
-
def configureRoom(self, room, form=None, ifrom=None):
if form is None:
- form = self.getRoomForm(room, ifrom=ifrom)
- #form = self.xmpp.plugin['old_0004'].makeForm(ftype='submit')
- #form.addField('FORM_TYPE', value='http://jabber.org/protocol/muc#roomconfig')
+ form = self.getRoomConfig(room, ifrom=ifrom)
iq = self.xmpp.makeIqSet()
iq['to'] = room
if ifrom is not None: