Browse Source

Encoding str from utf-8 before sending to socket - correction2

Jadjay 8 years ago
parent
commit
6b843e2956
1 changed files with 2 additions and 2 deletions
  1. 2 2
      irclib.py

+ 2 - 2
irclib.py View File

@@ -763,12 +763,12 @@ class ServerConnection(Connection):
763 763
     def privmsg(self, target, text):
764 764
         """Send a PRIVMSG command."""
765 765
         # Should limit len(text) here!
766
-        self.send_raw(u'PRIVMSG %s :%s' % (target, text))
766
+        self.send_raw("PRIVMSG %s :%s" % (target, text))
767 767
 
768 768
     def privmsg_many(self, targets, text):
769 769
         """Send a PRIVMSG command to multiple targets."""
770 770
         # Should limit len(text) here!
771
-        self.send_raw(u'PRIVMSG %s :%s' % (','.join(targets), text))
771
+        self.send_raw("PRIVMSG %s :%s" % (",".join(targets), text))
772 772
 
773 773
     def quit(self, message=""):
774 774
         """Send a QUIT command."""