From c4c7c6b25882ff45ab81910564d4aa566a66996c Mon Sep 17 00:00:00 2001 From: Jimmy Cao Date: Sun, 11 Sep 2011 17:58:02 -0500 Subject: [PATCH] fix a wolf relay bug --- wolfgame.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wolfgame.py b/wolfgame.py index 6af4fba..63060a2 100644 --- a/wolfgame.py +++ b/wolfgame.py @@ -1879,8 +1879,9 @@ def mass_privmsg(cli, targets, msg): @pmcmd("") def relay(cli, nick, rest): - if var.PHASE != "night": - return + """Let the wolves talk to each other through the bot""" + if var.PHASE not in ("night", "day"): + return badguys = var.ROLES["wolf"] + var.ROLES["traitor"] + var.ROLES["werecrow"] if len(badguys) > 1: