[irc] _hopefully_ fix unicode error

This commit is contained in:
HarHar 2013-01-24 21:16:28 -02:00
parent bd30e67a66
commit e4c57e6e97

View File

@ -70,7 +70,7 @@ class Bot(object):
self.msg(self.channel, chr(2) + '<' + who + '>'+ chr(15) +' has jumped from ' + utils.formatTime(fromTime) + ' to ' + utils.formatTime(toTime) +' (room ' + room + ')')
def sockSend(self, s):
self.sock.send(s + '\r\n')
self.sock.send(s + u'\r\n')
def msg(self, who, message):
self.sockSend('PRIVMSG ' + who + ' :' + message)
def join(self, channel, passw=''):