Prevent detective from IDing themselves. Closes #18.
This commit is contained in:
parent
193387bb0f
commit
a406485319
@ -1889,6 +1889,9 @@ def investigate(cli, nick, rest):
|
|||||||
pm(cli, nick, "You may only investigate one person per round.")
|
pm(cli, nick, "You may only investigate one person per round.")
|
||||||
return
|
return
|
||||||
victim = re.split(" +", rest)[0].strip().lower()
|
victim = re.split(" +", rest)[0].strip().lower()
|
||||||
|
if victim == nick:
|
||||||
|
pm(cli, nick, "Investingating yourself would be a waste.")
|
||||||
|
return
|
||||||
if not victim:
|
if not victim:
|
||||||
pm(cli, nick, "Not enough parameters")
|
pm(cli, nick, "Not enough parameters")
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user