diff options
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) |