From 37cc8660923de3e0fb18f1046fa7c5df8ac9e6b2 Mon Sep 17 00:00:00 2001 From: Goffi Date: Sun, 22 Jan 2012 19:40:04 +0100 Subject: [PATCH] plugin XEP-0045: room unlocking fix --- src/plugins/plugin_xep_0045.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/plugins/plugin_xep_0045.py b/src/plugins/plugin_xep_0045.py index 4807ac00..50c3c8cb 100755 --- a/src/plugins/plugin_xep_0045.py +++ b/src/plugins/plugin_xep_0045.py @@ -86,11 +86,12 @@ class XEP_0045(): room_jid_s = room.roomJID.userhost() self.clients[profile].joined_rooms[room_jid_s] = room - if room.status == '201': + if room.locked: #FIXME: the current behaviour is to create an instant room #and send the signal only when the room is unlocked #a proper configuration management should be done - self.clients[profile].configure(room_jid_s).addCallbacks(_sendBridgeSignal, lambda x: error(_('Error while configuring the room'))) + print "room locked !" + self.clients[profile].configure(room.roomJID, {}).addCallbacks(_sendBridgeSignal, lambda x: error(_('Error while configuring the room'))) else: _sendBridgeSignal() return room