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:
Brian S. Stephan 2011-01-06 22:26:24 -06:00
parent c1c9908d5d
commit 85c5c69cb9
1 changed files with 1 additions and 1 deletions

View File

@ -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