comparison bridge.py @ 240:ebd67e3e4866

fix for Bridge.remove_participant, bug introduced in d875cbf0a544e6ad0c640f3afedbc2c87fb4db9c Signed-off-by: Charly COSTE <changaco@changaco.net>
author Charly COSTE <changaco@changaco.net>
date Mon, 08 Mar 2010 11:12:41 +0100
parents 71c23e30cd6c
children 430eb5052e4d
comparison
equal deleted inserted replaced
239:70938f01be8f 240:ebd67e3e4866
315 p.create_duplicate_on_xmpp() 315 p.create_duplicate_on_xmpp()
316 else: 316 else:
317 if left_protocol == 'irc': 317 if left_protocol == 'irc':
318 was_on_both = False 318 was_on_both = False
319 elif left_protocol == 'xmpp': 319 elif left_protocol == 'xmpp':
320 if isinstance(p.muc, xmpp.muc) and not xmpp.muc.connected: 320 if isinstance(p.muc, xmpp.muc) and not p.muc.connected:
321 return 321 return
322 # got disconnected somehow 322 # got disconnected somehow
323 if isinstance(p.xmpp_c, xmpp.client.Client): 323 if isinstance(p.xmpp_c, xmpp.client.Client):
324 self.bot.reopen_xmpp_connection(p.xmpp_c) 324 self.bot.reopen_xmpp_connection(p.xmpp_c)
325 return 325 return