From 51088225948111614759ca80f3624888b41be69d Mon Sep 17 00:00:00 2001 From: jacob1 Date: Sun, 3 Apr 2016 22:47:28 -0400 Subject: [PATCH] use var.GAME_PLASES for reply() in utilities.py --- src/utilities.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utilities.py b/src/utilities.py index 46b6eff..e14db47 100644 --- a/src/utilities.py +++ b/src/utilities.py @@ -84,7 +84,7 @@ def mass_privmsg(cli, targets, msg, notice=False, privmsg=False): def reply(cli, nick, chan, msg, private=False): if chan == nick: pm(cli, nick, msg) - elif private or (nick not in var.list_players() and var.PHASE not in ("none", "join") and chan == botconfig.CHANNEL): + elif private or (nick not in var.list_players() and var.PHASE in var.GAME_PHASES and chan == botconfig.CHANNEL): cli.notice(nick, msg) else: cli.msg(chan, msg)