summaryrefslogtreecommitdiffstats
path: root/modules/ping.py
diff options
context:
space:
mode:
authorSean B. Palmer <sbp@aldebaran.local>2011-06-17 16:49:37 +0100
committerSean B. Palmer <sbp@aldebaran.local>2011-06-17 16:49:37 +0100
commit12c8cd07f52883299ed628752b580462c31ce9f1 (patch)
treec79b62a988eb18221149fb47f873cadd1979c0fd /modules/ping.py
parent78ec2730460e8271e3a9d96056799785e6866f83 (diff)
downloadbot-12c8cd07f52883299ed628752b580462c31ce9f1.tar.gz
bot-12c8cd07f52883299ed628752b580462c31ce9f1.tar.bz2
bot-12c8cd07f52883299ed628752b580462c31ce9f1.zip
Search shim, and an encoding fix.
Diffstat (limited to 'modules/ping.py')
-rwxr-xr-xmodules/ping.py2
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 + '!')