changeset 167:f4997d50e93b

fixed an infinite loop and an indentation error in irclib Signed-off-by: Charly COSTE <changaco@changaco.net>
author Charly COSTE <changaco@changaco.net>
date Wed, 20 Jan 2010 17:00:00 +0100
parents 0fc24e232997
children d3b619cd60fb
files irclib.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/irclib.py
+++ b/irclib.py
@@ -757,10 +757,11 @@ class ServerConnection(Connection):
         if self.connected:
             self.connected = False
         if self.really_connected:
-			self.really_connected = False
+            self.really_connected = False
 
         if self.socket and self.socket != 'closed':
-            self.quit(message)
+            if message and message != 'Connection reset by peer':
+                self.quit(message)
 
             try:
                 self.socket.close()