From 32db6b131d734e7681aa55394a4cc101a8f8f91c Mon Sep 17 00:00:00 2001 From: jacob1 Date: Mon, 1 Feb 2016 20:54:47 -0500 Subject: [PATCH] allow using !gstats in alternate channels while a game is going on elsewhere --- messages/en.json | 2 +- src/wolfgame.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/messages/en.json b/messages/en.json index df4b09e..7b79da9 100644 --- a/messages/en.json +++ b/messages/en.json @@ -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: ", diff --git a/src/wolfgame.py b/src/wolfgame.py index 7b54e0b..e707928 100644 --- a/src/wolfgame.py +++ b/src/wolfgame.py @@ -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