From a41de9cbe3ed3863a26ced5795f77ed58d79b5a6 Mon Sep 17 00:00:00 2001 From: jcao219 Date: Wed, 10 Aug 2011 14:23:38 -0500 Subject: [PATCH] no "You Can't Kill" Message for traitors --- wolfgame.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wolfgame.py b/wolfgame.py index 3a08739..0467a88 100644 --- a/wolfgame.py +++ b/wolfgame.py @@ -1407,6 +1407,8 @@ def kill(cli, nick, rest): cli.notice(nick, "You're not currently playing.") return role = var.get_role(nick) + if role == "traitor": + return # they do this a lot. if role not in ('wolf', 'werecrow'): cli.msg(nick, "Only a wolf may use this command.") return @@ -2320,6 +2322,7 @@ if botconfig.DEBUG_MODE: "game settings successfully.").format(nick)) + # DO NOT MAKE THIS A PMCOMMAND ALSO @cmd("force", admin_only=True) def forcepm(cli, nick, chan, rest): rst = re.split(" +",rest)