From 6e43f609740c93383fe392f5df155e91da6c73ec Mon Sep 17 00:00:00 2001 From: skizzerz Date: Thu, 17 Jul 2014 20:53:50 -0500 Subject: [PATCH] Properly return from pass if a hunter isn't using the command. Fixes #25 --- modules/wolfgame.py | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/wolfgame.py b/modules/wolfgame.py index 4936b46..1e23db4 100644 --- a/modules/wolfgame.py +++ b/modules/wolfgame.py @@ -2955,6 +2955,7 @@ def pass_cmd(cli, nick, rest): role = var.get_role(nick) if role != "hunter": pm(cli, nick, "Only a hunter may use this command.") + return if var.PHASE != "night": pm(cli, nick, "You may only pass at night.") return