Prevent detective from IDing themselves. Closes #18.

This commit is contained in:
nyuszika7h 2014-02-09 11:33:45 +01:00
parent 193387bb0f
commit a406485319

View File

@ -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