summaryrefslogtreecommitdiffstats
path: root/bot.py
diff options
context:
space:
mode:
authorSean B. Palmer <sean@miscoranda.com>2010-01-19 14:52:37 +0000
committerSean B. Palmer <sean@miscoranda.com>2010-01-19 14:52:37 +0000
commit3e300c4357973d4dd88cdf4a4046ef5c78409b81 (patch)
tree78a80aac404d2bcad28a6702b10b783d6855a527 /bot.py
parentf5ef55769ee9f22065cf714872ea1a38d48047d8 (diff)
downloadbot-3e300c4357973d4dd88cdf4a4046ef5c78409b81.tar.gz
bot-3e300c4357973d4dd88cdf4a4046ef5c78409b81.tar.bz2
bot-3e300c4357973d4dd88cdf4a4046ef5c78409b81.zip
Fixed the .commandr bug.
Diffstat (limited to 'bot.py')
-rwxr-xr-xbot.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot.py b/bot.py
index 1bd559f..7cfc76c 100755
--- a/bot.py
+++ b/bot.py
@@ -127,7 +127,7 @@ class Phenny(irc.Bot):
prefix = self.config.prefix
commands, pattern = func.rule
for command in commands:
- command = r'(%s)(?: +(?:%s))?' % (command, pattern)
+ command = r'(%s)\b(?: +(?:%s))?' % (command, pattern)
regexp = re.compile(prefix + command)
bind(self, func.priority, regexp, func)