fix error in !gamestats #

This commit is contained in:
jacob1 2016-09-24 15:31:46 -04:00
parent e0bf47c182
commit 3ce7e1d72f

View File

@ -7100,7 +7100,7 @@ def game_stats(cli, nick, chan, rest):
return
rest.pop(0)
# Check for invalid input
if len(rest) and rest[0].isdigit():
if gamemode != "all" and len(rest) and rest[0].isdigit():
gamesize = int(rest[0])
if gamesize > var.GAME_MODES[gamemode][2] or gamesize < var.GAME_MODES[gamemode][1]:
cli.notice(nick, messages["integer_range"].format(var.GAME_MODES[gamemode][1], var.GAME_MODES[gamemode][2]))