From 27d47ba3d0cdba5d001bc299f46f4335043a1784 Mon Sep 17 00:00:00 2001 From: Jadjay Date: Tue, 21 Jun 2016 23:55:11 +0200 Subject: [PATCH] Encoding str from utf-8 before sending to socket - correction --- irclib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/irclib.py b/irclib.py index 801181f..e33d462 100644 --- a/irclib.py +++ b/irclib.py @@ -795,7 +795,7 @@ class ServerConnection(Connection): print "TO SERVER:", string except socket.error, x: # Ouch! - self.disconnect(u'Connection reset by peer.') + self.disconnect("Connection reset by peer.") def squit(self, server, comment=""): """Send an SQUIT command."""