Use mentionable format when comparing names

This commit is contained in:
Joscha 2016-05-23 19:30:50 +02:00
parent 3d8940ab4e
commit 4defd70bbe

View file

@ -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)