changeset 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 0a2b9e84bbde
children c5e4bf95f52a
files bot.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
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: