# HG changeset patch # User Goffi # Date 1327257604 -3600 # Node ID fd455b3ca6d4a7286fee1ab2fecd16fab2d5fb31 # Parent 4f196e2d3781bd5d99df0b1388b4513ea5ef67a9 plugin XEP-0045: room unlocking fix diff -r 4f196e2d3781 -r fd455b3ca6d4 src/plugins/plugin_xep_0045.py --- a/src/plugins/plugin_xep_0045.py Thu Jan 05 00:42:24 2012 +0100 +++ b/src/plugins/plugin_xep_0045.py Sun Jan 22 19:40:04 2012 +0100 @@ -86,11 +86,12 @@ 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