Mercurial > xib
changeset 165:12d564cd0203
minor fix in irclib, always use exactly the same message when server hung up
Signed-off-by: Charly COSTE <changaco@changaco.net>
author | Charly COSTE <changaco@changaco.net> |
---|---|
date | Wed, 20 Jan 2010 10:49:33 +0100 |
parents | 6b91ca42df98 |
children | 0fc24e232997 |
files | irclib.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/irclib.py +++ b/irclib.py @@ -922,7 +922,7 @@ class ServerConnection(Connection): print "TO SERVER:", string except socket.error, x: # Ouch! - self.disconnect("Connection reset by peer.") + self.disconnect("Connection reset by peer") def squit(self, server, comment=""): """Send an SQUIT command.""" @@ -1142,7 +1142,7 @@ class DCCConnection(Connection): print "TO PEER: %s\n" % string except socket.error, x: # Ouch! - self.disconnect("Connection reset by peer.") + self.disconnect("Connection reset by peer") class Event: