comparison src/plugins/plugin_xep_0045.py @ 407:b4edea06ae12

plugin XEP-0045: fix method call
author Goffi <goffi@goffi.org>
date Sat, 08 Oct 2011 19:13:43 +0200
parents b03b38b20c18
children 2e0dc5299bce
comparison
equal deleted inserted replaced
406:b03b38b20c18 407:b4edea06ae12
164 except: 164 except:
165 mess = _("Invalid room jid: %s") % room_jid_s 165 mess = _("Invalid room jid: %s") % room_jid_s
166 warning(mess) 166 warning(mess)
167 self.host.bridge.newAlert(mess, _("Group chat error"), "ERROR", profile) 167 self.host.bridge.newAlert(mess, _("Group chat error"), "ERROR", profile)
168 return 168 return
169 d = self.join(jid.JID(room_jid), nick, options, profile) 169 d = self.join(room_jid, nick, options, profile)
170 d.addErrback(lambda x: warning(_('Error while joining room'))) #TODO: error management + signal in bridge 170 d.addErrback(lambda x: warning(_('Error while joining room'))) #TODO: error management + signal in bridge
171 171
172 def getHandler(self, profile): 172 def getHandler(self, profile):
173 self.clients[profile] = SatMUCClient(self) 173 self.clients[profile] = SatMUCClient(self)
174 return self.clients[profile] 174 return self.clients[profile]