From 3ce7e1d72fc2caf0b915767cd3eed2d5ee520e0b Mon Sep 17 00:00:00 2001 From: jacob1 Date: Sat, 24 Sep 2016 15:31:46 -0400 Subject: [PATCH] fix error in !gamestats # --- src/wolfgame.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wolfgame.py b/src/wolfgame.py index 0f20c1b..fecc2d4 100644 --- a/src/wolfgame.py +++ b/src/wolfgame.py @@ -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]))