Make !retract use the same message for !nolynch

The reasoning behind this is that retracting your vote not to lynch does
not necessarily mean that you will indeed lynch someone.

Also, retracting a vote not to lynch will now reset the !votes rate
limit, just like retracting a normal vote.
This commit is contained in:
nyuszika7h 2014-09-03 16:10:56 +02:00
parent a205e7b877
commit ebc806fd25

View File

@ -3065,7 +3065,10 @@ def retract(cli, nick, chann_, rest):
return
if nick in var.NO_LYNCH:
var.NO_LYNCH.remove(nick)
cli.msg(chan, "\u0002{0}\u0002 changed their mind and will vote for someone today.".format(nick))
cli.msg(chan, "\u0002{0}\u0002's vote was retracted.".format(nick))
var.LOGGER.logBare(voter, "RETRACT", nick)
var.LOGGER.logMessage("{0}'s vote was retracted.".format(nick))
var.LAST_VOTES = None # reset
candidates = var.VOTES.keys()
for voter in list(candidates):