Fixed the .commandr bug.
This commit is contained in:
2
bot.py
2
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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user