fix error in !gamestats #
This commit is contained in:
parent
e0bf47c182
commit
3ce7e1d72f
@ -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]))
|
||||
|
Loading…
x
Reference in New Issue
Block a user