diff options
author | Sean B. Palmer <sean@miscoranda.com> | 2010-01-19 14:52:37 +0000 |
---|---|---|
committer | Sean B. Palmer <sean@miscoranda.com> | 2010-01-19 14:52:37 +0000 |
commit | 3e300c4357973d4dd88cdf4a4046ef5c78409b81 (patch) | |
tree | 78a80aac404d2bcad28a6702b10b783d6855a527 /bot.py | |
parent | f5ef55769ee9f22065cf714872ea1a38d48047d8 (diff) | |
download | bot-3e300c4357973d4dd88cdf4a4046ef5c78409b81.tar.gz bot-3e300c4357973d4dd88cdf4a4046ef5c78409b81.tar.bz2 bot-3e300c4357973d4dd88cdf4a4046ef5c78409b81.zip |
Fixed the .commandr bug.
Diffstat (limited to 'bot.py')
-rwxr-xr-x | bot.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |