Use mentionable format when comparing names
This commit is contained in:
parent
3d8940ab4e
commit
4defd70bbe
1 changed files with 3 additions and 1 deletions
|
|
@ -128,9 +128,11 @@ class Bot():
|
|||
if not self.commands.exists(command):
|
||||
return
|
||||
|
||||
if not name == self.mentionable():
|
||||
if not name == self.mentionable().lower():
|
||||
return
|
||||
|
||||
name = self.room.mentionable(name).lower()
|
||||
|
||||
if bot_id is not None: # id specified
|
||||
if self.manager.get(bot_id) == self:
|
||||
self.commands.call(command, message, arguments, flags, options)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue