mirror of
https://github.com/jlu5/PyLink.git
synced 2025-02-17 14:01:03 +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:
parent
f439267129
commit
29458c8e47
@ -83,7 +83,7 @@ def showchan(irc, source, args):
|
|||||||
Shows information about <channel>."""
|
Shows information about <channel>."""
|
||||||
permissions.check_permissions(irc, source, ['commands.showchan'])
|
permissions.check_permissions(irc, source, ['commands.showchan'])
|
||||||
try:
|
try:
|
||||||
channel = irc.to_lower(args[0])
|
channel = args[0]
|
||||||
except IndexError:
|
except IndexError:
|
||||||
irc.error("Not enough arguments. Needs 1: channel.")
|
irc.error("Not enough arguments. Needs 1: channel.")
|
||||||
return
|
return
|
||||||
|
@ -341,7 +341,7 @@ def kick(irc, source, args):
|
|||||||
Kicks <user> from the specified channel."""
|
Kicks <user> from the specified channel."""
|
||||||
permissions.check_permissions(irc, source, ['opercmds.kick'])
|
permissions.check_permissions(irc, source, ['opercmds.kick'])
|
||||||
try:
|
try:
|
||||||
channel = irc.to_lower(args[0])
|
channel = args[0]
|
||||||
target = args[1]
|
target = args[1]
|
||||||
reason = ' '.join(args[2:])
|
reason = ' '.join(args[2:])
|
||||||
except IndexError:
|
except IndexError:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user