Mercurial > xib
comparison bridge.py @ 10:7cb790f5f243
No comment.
Signed-off-by: Charly COSTE <changaco@changaco.net>
author | Charly COSTE <changaco@changaco.net> |
---|---|
date | Sun, 16 Aug 2009 23:35:15 +0200 |
parents | cb0daec4b778 |
children | 79b0a7f48a3e |
comparison
equal
deleted
inserted
replaced
9:4b2faa511f01 | 10:7cb790f5f243 |
---|---|
68 | 68 |
69 | 69 |
70 def addParticipant(self, protocol, nickname): | 70 def addParticipant(self, protocol, nickname): |
71 """Add a participant to the bridge.""" | 71 """Add a participant to the bridge.""" |
72 if (protocol == 'irc' and nickname == self.irc_connection.get_nickname()) or (protocol == 'xmpp' and nickname == self.xmpp_room.nickname): | 72 if (protocol == 'irc' and nickname == self.irc_connection.get_nickname()) or (protocol == 'xmpp' and nickname == self.xmpp_room.nickname): |
73 raise Exception('cannot add self') | 73 raise Exception('Internal Error: cannot add self') |
74 try: | 74 try: |
75 p = self.getParticipant(nickname) | 75 p = self.getParticipant(nickname) |
76 if p.protocol != protocol: | 76 if p.protocol != protocol: |
77 if protocol == 'irc': | 77 if protocol == 'irc': |
78 p.createDuplicateOnXMPP() | 78 p.createDuplicateOnXMPP() |