use var.GAME_PLASES for reply() in utilities.py
This commit is contained in:
parent
db43486fa8
commit
5108822594
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user