Mercurial > xib
comparison participant.py @ 59:0c00cf22492d
Fixed participant.changeNickname()
Signed-off-by: Charly COSTE <changaco@changaco.net>
author | Charly COSTE <changaco@changaco.net> |
---|---|
date | Fri, 28 Aug 2009 13:40:13 +0200 |
parents | b048c4c03b00 |
children | 624c086b0a02 |
comparison
equal
deleted
inserted
replaced
58:92341dbfb8b7 | 59:0c00cf22492d |
---|---|
122 | 122 |
123 else: | 123 else: |
124 self.nickname = newnick | 124 self.nickname = newnick |
125 if self.muc != None: | 125 if self.muc != None: |
126 self.bridge.bot.xmpp_connections[newnick] = self.xmpp_c | 126 self.bridge.bot.xmpp_connections[newnick] = self.xmpp_c |
127 self.bridge.bot.close_xmpp_connection(oldnick) | 127 self.bridge.bot.xmpp_connections.pop(oldnick) |
128 self.muc.change_nick(newnick, status='From IRC', callback=self._xmpp_join_callback) | 128 self.muc.change_nick(newnick, status='From IRC', callback=self._xmpp_join_callback) |
129 else: | 129 else: |
130 self.createDuplicateOnXMPP() | 130 self.createDuplicateOnXMPP() |
131 | 131 |
132 | 132 |