allow using !gstats in alternate channels while a game is going on elsewhere

This commit is contained in:
jacob1 2016-02-01 20:54:47 -05:00
parent 56827a2ce2
commit 32db6b131d
2 changed files with 3 additions and 3 deletions

View File

@ -588,7 +588,7 @@
"incorrect_syntax": "Incorrect syntax for this command.",
"command_scheduled": "The command \u0002{0}\u0002 has been scheduled to run after this game by \u0002{1}\u0002.",
"disable_new_games": "Creating a new game has now been disabled by \u0002{0}\u0002.",
"stats_wait_for_game": "Wait until the game is over to view stats.",
"stats_wait_for_game_end": "Wait until the game is over to view stats.",
"invalid_mode_no_list": "{0} is not a valid game mode.",
"integer_range": "Please enter an integer between {0} and {1}.",
"no_mode_specified": "No game mode specified. Available game modes: ",

View File

@ -8663,8 +8663,8 @@ def game_stats(cli, nick, chan, rest):
if chan != nick:
var.LAST_GSTATS = datetime.now()
if var.PHASE not in ("none", "join"):
cli.notice(nick, messages["stats_wait_for_game"])
if var.PHASE not in ("none", "join") and chan == botconfig.CHANNEL:
cli.notice(nick, messages["stats_wait_for_game_end"])
return
gamemode = var.CURRENT_GAMEMODE.name