shouldn't need this unicode workaround anymore (fingers crossed)
This commit is contained in:
parent
c513a0bebc
commit
9ed1586783
@ -66,9 +66,7 @@ class MegaHAL(Module):
|
|||||||
line = addressed_re.sub('', line)
|
line = addressed_re.sub('', line)
|
||||||
append_nick = True
|
append_nick = True
|
||||||
|
|
||||||
try:
|
reply = self.megahal.get_reply(line)
|
||||||
reply = self.megahal.get_reply(line)
|
|
||||||
except UnicodeDecodeError: pass
|
|
||||||
elif re.search('^megahal$', line, re.IGNORECASE) is not None:
|
elif re.search('^megahal$', line, re.IGNORECASE) is not None:
|
||||||
reply = self.megahal.get_reply_nolearn('')
|
reply = self.megahal.get_reply_nolearn('')
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user