# HG changeset patch # User Charly COSTE # Date 1251665022 -7200 # Node ID 01f1c6cb744730594de9c741b2d04189b640800f # Parent 0a2b9e84bbde3e6a2adc2c319c970df6be591215 Prevent unjustified switching to limited mode Signed-off-by: Charly COSTE diff --git a/bot.py b/bot.py --- 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: