From a4064853190a93e31c54969b262adc6f66947569 Mon Sep 17 00:00:00 2001 From: nyuszika7h Date: Sun, 9 Feb 2014 11:33:45 +0100 Subject: [PATCH] Prevent detective from IDing themselves. Closes #18. --- modules/wolfgame.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/wolfgame.py b/modules/wolfgame.py index 43040ab..7b6a1db 100644 --- a/modules/wolfgame.py +++ b/modules/wolfgame.py @@ -1889,6 +1889,9 @@ def investigate(cli, nick, rest): pm(cli, nick, "You may only investigate one person per round.") return victim = re.split(" +", rest)[0].strip().lower() + if victim == nick: + pm(cli, nick, "Investingating yourself would be a waste.") + return if not victim: pm(cli, nick, "Not enough parameters") return