Mercurial > xib
comparison bridge.py @ 5:cb0daec4b778
Added support for IRC "nick" event, fixed participant.changeNickname(), fixed handling of IRC "namreply" event, removed muc._check() because waiting does not solve the problem if it is blocking incoming messages handling
Signed-off-by: Charly COSTE <changaco@changaco.net>
author | Charly COSTE <changaco@changaco.net> |
---|---|
date | Sun, 16 Aug 2009 17:59:00 +0200 |
parents | 3f651f4fdb4f |
children | 7cb790f5f243 |
comparison
equal
deleted
inserted
replaced
4:012593ed4e12 | 5:cb0daec4b778 |
---|---|
149 i = 0 | 149 i = 0 |
150 for p in self.participants: | 150 for p in self.participants: |
151 if p.protocol == 'xmpp': | 151 if p.protocol == 'xmpp': |
152 i += 1 | 152 i += 1 |
153 if p.irc_connection: | 153 if p.irc_connection: |
154 p.irc_connection.closing = True | |
154 p.irc_connection.disconnect('Bridge is switching to limited mode') | 155 p.irc_connection.disconnect('Bridge is switching to limited mode') |
155 p.irc_connection.close() | |
156 p.irc_connection = None | 156 p.irc_connection = None |
157 self.irc_connections_limit = i | 157 self.irc_connections_limit = i |
158 self.bot.error('===> Bridge is switching to limited mode.') | 158 self.bot.error('===> Bridge is switching to limited mode.') |
159 self.say('[Warning] Bridge is switching to limited mode, it means that it will be transparent for XMPP users but not for IRC users, this is due to the IRC servers\' per-IP-address connections\' limit number.') | 159 self.say('[Warning] Bridge is switching to limited mode, it means that it will be transparent for XMPP users but not for IRC users, this is due to the IRC servers\' per-IP-address connections\' limit number.') |
160 | 160 |