fix unicode errors that prevented PMs from working properly
parent
0461aab1c1
commit
d5a614d530
2
irc.py
2
irc.py
|
@ -23,7 +23,7 @@ class Origin(object):
|
||||||
self.nick, self.user, self.host = match.groups()
|
self.nick, self.user, self.host = match.groups()
|
||||||
|
|
||||||
if len(args) > 1:
|
if len(args) > 1:
|
||||||
target = args[1]
|
target = args[1].decode('utf-8')
|
||||||
else: target = None
|
else: target = None
|
||||||
|
|
||||||
mappings = {bot.nick: self.nick, None: None}
|
mappings = {bot.nick: self.nick, None: None}
|
||||||
|
|
Loading…
Reference in New Issue