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
     def privmsg(self, target, text):
763
     def privmsg(self, target, text):
764
         """Send a PRIVMSG command."""
764
         """Send a PRIVMSG command."""
765
         # Should limit len(text) here!
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
     def privmsg_many(self, targets, text):
768
     def privmsg_many(self, targets, text):
769
         """Send a PRIVMSG command to multiple targets."""
769
         """Send a PRIVMSG command to multiple targets."""
770
         # Should limit len(text) here!
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
     def quit(self, message=""):
773
     def quit(self, message=""):
774
         """Send a QUIT command."""
774
         """Send a QUIT command."""