Mercurial > libervia-backend
changeset 452:fd455b3ca6d4
plugin XEP-0045: room unlocking fix
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 22 Jan 2012 19:40:04 +0100 |
parents | 4f196e2d3781 |
children | 5731b038fc7f |
files | src/plugins/plugin_xep_0045.py |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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