diff options
author | Sean B. Palmer <sbp@aldebaran.local> | 2011-06-17 16:49:37 +0100 |
---|---|---|
committer | Sean B. Palmer <sbp@aldebaran.local> | 2011-06-17 16:49:37 +0100 |
commit | 12c8cd07f52883299ed628752b580462c31ce9f1 (patch) | |
tree | c79b62a988eb18221149fb47f873cadd1979c0fd /modules/ping.py | |
parent | 78ec2730460e8271e3a9d96056799785e6866f83 (diff) | |
download | bot-12c8cd07f52883299ed628752b580462c31ce9f1.tar.gz bot-12c8cd07f52883299ed628752b580462c31ce9f1.tar.bz2 bot-12c8cd07f52883299ed628752b580462c31ce9f1.zip |
Search shim, and an encoding fix.
Diffstat (limited to 'modules/ping.py')
-rwxr-xr-x | modules/ping.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/ping.py b/modules/ping.py index 97e41e1..23219ac 100755 --- a/modules/ping.py +++ b/modules/ping.py @@ -11,7 +11,7 @@ def hello(phenny, input): greeting = random.choice(('Hi', 'Hey', 'Hello')) punctuation = random.choice(('', '!')) phenny.say(greeting + ' ' + input.nick + punctuation) -hello.rule = r'(?i)(hi|hello|hey) $nickname\b' +hello.rule = r'(?i)(hi|hello|hey) $nickname[ \t]*$' def interjection(phenny, input): phenny.say(input.nick + '!') |