From 96865ad560fe97852ab043965347131c04a86450 Mon Sep 17 00:00:00 2001 From: Joscha Date: Wed, 25 May 2016 00:56:24 +0200 Subject: [PATCH] Don't lowercase in parsing function --- yaboli/bot.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/yaboli/bot.py b/yaboli/bot.py index d63dd08..95b6f26 100644 --- a/yaboli/bot.py +++ b/yaboli/bot.py @@ -149,6 +149,7 @@ class Bot(): except exceptions.ParseMessageException: return else: + command = command.lower() nick = self.room.mentionable(nick).lower() if not self.commands.exists(command): @@ -297,7 +298,7 @@ class Bot(): elif not len(split) > 1: raise exceptions.ParseMessageException("No bot nick") - command = split[0][1:].lower() + command = split[0][1:] message = split[1] split = message.split(maxsplit=1) @@ -317,7 +318,7 @@ class Bot(): if split[0][:1] != "@": raise exceptions.ParseMessageException("No bot nick") - nick = split[0][1:].lower() + nick = split[0][1:] # arguments to the command if len(split) > 1: