Mercurial > xib
comparison participant.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 |
---|---|
138 self.muc.change_nick(newnick, callback=self._xmpp_join_callback) | 138 self.muc.change_nick(newnick, callback=self._xmpp_join_callback) |
139 else: | 139 else: |
140 self.createDuplicateOnXMPP() | 140 self.createDuplicateOnXMPP() |
141 elif self.protocol == 'both': | 141 elif self.protocol == 'both': |
142 if on_protocol == 'irc': | 142 if on_protocol == 'irc': |
143 self.protocol = 'xmpp' | 143 self.bridge.removeParticipant('xmpp', self.nickname, '') |
144 self.createDuplicateOnIRC() | 144 self.bridge.addParticipant('xmpp', newnick) |
145 elif on_protocol == 'xmpp': | 145 elif on_protocol == 'xmpp': |
146 self.protocol = 'irc' | 146 self.bridge.removeParticipant('irc', self.nickname, '') |
147 self.createDuplicateOnXMPP() | 147 self.bridge.addParticipant('irc', newnick) |
148 | 148 |
149 | 149 |
150 def sayOnIRC(self, message): | 150 def sayOnIRC(self, message): |
151 try: | 151 try: |
152 if self.protocol == 'irc': | 152 if self.protocol == 'irc': |