Mercurial > xib
diff bridge.py @ 3:3f651f4fdb4f
Added IRC "part" event handling
Signed-off-by: Charly COSTE <changaco@changaco.net>
author | Charly COSTE <changaco@changaco.net> |
---|---|
date | Sun, 16 Aug 2009 17:10:12 +0200 |
parents | 4c842d23d4ce |
children | cb0daec4b778 |
line wrap: on
line diff
--- a/bridge.py +++ b/bridge.py @@ -103,9 +103,11 @@ class bridge: if p.protocol == 'both': self.bot.error('===> Debug: "'+nickname+'" was on both sides of bridge "'+str(self)+'" but left '+protocol, debug=True) if protocol == 'xmpp': - p.createDuplicateOnIRC() + p.protocol = 'irc' + p.createDuplicateOnXMPP() elif protocol == 'irc': - p.createDuplicateOnXMPP() + p.protocol = 'xmpp' + p.createDuplicateOnIRC() else: raise Exception('Internal Error: bad protocol') else: