Sfoglia il codice sorgente

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

Jadjay 8 anni fa
parent
commit
6b843e2956
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      irclib.py

+ 2 - 2
irclib.py Vedi 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."""