From 4defd70bbec384e4dd083eb3a162e0a476e14e4b Mon Sep 17 00:00:00 2001 From: Joscha Date: Mon, 23 May 2016 19:30:50 +0200 Subject: [PATCH] Use mentionable format when comparing names --- yaboli/bot.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/yaboli/bot.py b/yaboli/bot.py index a54b251..e162893 100644 --- a/yaboli/bot.py +++ b/yaboli/bot.py @@ -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)