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):
|
if not self.commands.exists(command):
|
||||||
return
|
return
|
||||||
|
|
||||||
if not name == self.mentionable():
|
if not name == self.mentionable().lower():
|
||||||
return
|
return
|
||||||
|
|
||||||
|
name = self.room.mentionable(name).lower()
|
||||||
|
|
||||||
if bot_id is not None: # id specified
|
if bot_id is not None: # id specified
|
||||||
if self.manager.get(bot_id) == self:
|
if self.manager.get(bot_id) == self:
|
||||||
self.commands.call(command, message, arguments, flags, options)
|
self.commands.call(command, message, arguments, flags, options)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue