add a control for self lynching

This commit is contained in:
Eitan Adler 2013-04-21 09:13:11 -04:00
parent 235cef0cd7
commit 501f51d5d6
2 changed files with 6 additions and 3 deletions

View File

@ -1532,9 +1532,10 @@ def vote(cli, nick, chann_, rest):
voted = pl[pl_l.index(target)]
if nick == voted:
cli.notice(nick, "You may not vote for yourself.")
return
if not var.SELF_LYNCH_ALLOWED:
if nick == voted:
cli.notice(nick, "Please try to save yourself.")
return
lcandidates = list(var.VOTES.keys())
for voters in lcandidates: # remove previous vote

View File

@ -26,6 +26,8 @@ LEAVE_STASIS_PENALTY = 3
IDLE_STASIS_PENALTY = 2
PART_STASIS_PENALTY = 4
SELF_LYNCH_ALLOWED = True
CARE_BOLD = True
CARE_COLOR = True
KILL_COLOR = True