3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-24 11:42:51 +01:00

stats: treat stats characters case-insensitively

This commit is contained in:
James Lu 2017-08-08 00:00:12 -07:00
parent 7d26ce4ab5
commit 8558a4e56d

View File

@ -77,7 +77,7 @@ def handle_stats(irc, source, command, args):
u - shows uptime
"""
stats_type = args['stats_type'][0] # stats_type shouldn't be more than 1 char anyways
stats_type = args['stats_type'][0].lower() # stats_type shouldn't be more than 1 char anyways
perms = ['stats.%s' % stats_type]