weird megahal corruption strikes again.
i should probably work this out one of these times rather than just doing random hacks to dodge it
This commit is contained in:
parent
c1c9908d5d
commit
85c5c69cb9
|
@ -64,7 +64,7 @@ class MegaHAL(Module):
|
|||
if re.search(connection.get_nickname(), line, re.IGNORECASE) is not None:
|
||||
addressed_pattern = '^' + connection.get_nickname() + '[:,]\s+'
|
||||
addressed_re = re.compile(addressed_pattern)
|
||||
if addressed_re.match(line):
|
||||
if addressed_re.match(what):
|
||||
line = addressed_re.sub('', line)
|
||||
append_nick = True
|
||||
|
||||
|
|
Loading…
Reference in New Issue