fix unicode errors that prevented PMs from working properly
This commit is contained in:
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}
|
||||||
|
|||||||
Reference in New Issue
Block a user