Mercurial > xib
diff bot.py @ 70:01f1c6cb7447
Prevent unjustified switching to limited mode
Signed-off-by: Charly COSTE <changaco@changaco.net>
author | Charly COSTE <changaco@changaco.net> |
---|---|
date | Sun, 30 Aug 2009 22:43:42 +0200 |
parents | 8fc496eaa17b |
children | 6c4b841144f6 |
line wrap: on
line diff
--- a/bot.py +++ b/bot.py @@ -444,6 +444,9 @@ class bot(Thread): if event.eventtype() == 'disconnect': + if len(event.arguments()) > 0 and event.arguments()[0] == 'Connection reset by peer': + return + # TODO: lock self.bridges for thread safety for bridge in self.bridges: if connection.server != bridge.irc_server: