3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-01 09:19:23 +01:00

commands, opercmds: remove explicit to_lower usage

Closes #500 - I'm going to skip relay and automode because DataStore doesn't do case normalization yet.
This commit is contained in:
James Lu 2017-08-07 21:47:31 -07:00
parent f439267129
commit 29458c8e47
2 changed files with 2 additions and 2 deletions

View File

@ -83,7 +83,7 @@ def showchan(irc, source, args):
Shows information about <channel>."""
permissions.check_permissions(irc, source, ['commands.showchan'])
try:
channel = irc.to_lower(args[0])
channel = args[0]
except IndexError:
irc.error("Not enough arguments. Needs 1: channel.")
return

View File

@ -341,7 +341,7 @@ def kick(irc, source, args):
Kicks <user> from the specified channel."""
permissions.check_permissions(irc, source, ['opercmds.kick'])
try:
channel = irc.to_lower(args[0])
channel = args[0]
target = args[1]
reason = ' '.join(args[2:])
except IndexError: