From 6b843e2956ac796701bd4e1a66e7152dc340308d Mon Sep 17 00:00:00 2001 From: Jadjay Date: Tue, 21 Jun 2016 23:56:12 +0200 Subject: [PATCH] Encoding str from utf-8 before sending to socket - correction2 --- irclib.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/irclib.py b/irclib.py index e33d462..581d965 100644 --- a/irclib.py +++ b/irclib.py @@ -763,12 +763,12 @@ class ServerConnection(Connection): def privmsg(self, target, text): """Send a PRIVMSG command.""" # Should limit len(text) here! - self.send_raw(u'PRIVMSG %s :%s' % (target, text)) + self.send_raw("PRIVMSG %s :%s" % (target, text)) def privmsg_many(self, targets, text): """Send a PRIVMSG command to multiple targets.""" # Should limit len(text) here! - self.send_raw(u'PRIVMSG %s :%s' % (','.join(targets), text)) + self.send_raw("PRIVMSG %s :%s" % (",".join(targets), text)) def quit(self, message=""): """Send a QUIT command."""