Don't lowercase in parsing function
This commit is contained in:
parent
188198bc11
commit
96865ad560
1 changed files with 3 additions and 2 deletions
|
|
@ -149,6 +149,7 @@ class Bot():
|
||||||
except exceptions.ParseMessageException:
|
except exceptions.ParseMessageException:
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
|
command = command.lower()
|
||||||
nick = self.room.mentionable(nick).lower()
|
nick = self.room.mentionable(nick).lower()
|
||||||
|
|
||||||
if not self.commands.exists(command):
|
if not self.commands.exists(command):
|
||||||
|
|
@ -297,7 +298,7 @@ class Bot():
|
||||||
elif not len(split) > 1:
|
elif not len(split) > 1:
|
||||||
raise exceptions.ParseMessageException("No bot nick")
|
raise exceptions.ParseMessageException("No bot nick")
|
||||||
|
|
||||||
command = split[0][1:].lower()
|
command = split[0][1:]
|
||||||
message = split[1]
|
message = split[1]
|
||||||
split = message.split(maxsplit=1)
|
split = message.split(maxsplit=1)
|
||||||
|
|
||||||
|
|
@ -317,7 +318,7 @@ class Bot():
|
||||||
if split[0][:1] != "@":
|
if split[0][:1] != "@":
|
||||||
raise exceptions.ParseMessageException("No bot nick")
|
raise exceptions.ParseMessageException("No bot nick")
|
||||||
|
|
||||||
nick = split[0][1:].lower()
|
nick = split[0][1:]
|
||||||
|
|
||||||
# arguments to the command
|
# arguments to the command
|
||||||
if len(split) > 1:
|
if len(split) > 1:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue