no "You Can't Kill" Message for traitors

This commit is contained in:
Jimmy Cao 2011-08-10 14:23:38 -05:00
parent 85308a83ec
commit 8370618946

View File

@ -1407,6 +1407,8 @@ def kill(cli, nick, rest):
cli.notice(nick, "You're not currently playing.") cli.notice(nick, "You're not currently playing.")
return return
role = var.get_role(nick) role = var.get_role(nick)
if role == "traitor":
return # they do this a lot.
if role not in ('wolf', 'werecrow'): if role not in ('wolf', 'werecrow'):
cli.msg(nick, "Only a wolf may use this command.") cli.msg(nick, "Only a wolf may use this command.")
return return
@ -2320,6 +2322,7 @@ if botconfig.DEBUG_MODE:
"game settings successfully.").format(nick)) "game settings successfully.").format(nick))
# DO NOT MAKE THIS A PMCOMMAND ALSO
@cmd("force", admin_only=True) @cmd("force", admin_only=True)
def forcepm(cli, nick, chan, rest): def forcepm(cli, nick, chan, rest):
rst = re.split(" +",rest) rst = re.split(" +",rest)