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

pull/1/head
Jadjay 2016-06-21 23:56:12 +02:00
parent 27d47ba3d0
commit 6b843e2956
1 changed files with 2 additions and 2 deletions

View File

@ -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."""