From 85c5c69cb9b23b36a58fd7bd1ce29c17521e708b Mon Sep 17 00:00:00 2001 From: "Brian S. Stephan" Date: Thu, 6 Jan 2011 22:26:24 -0600 Subject: [PATCH] weird megahal corruption strikes again. i should probably work this out one of these times rather than just doing random hacks to dodge it --- modules/MegaHAL.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/MegaHAL.py b/modules/MegaHAL.py index 2e56aa3..93d9558 100644 --- a/modules/MegaHAL.py +++ b/modules/MegaHAL.py @@ -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