From ebc806fd25c6b45cd58424c0031557869af58e09 Mon Sep 17 00:00:00 2001 From: nyuszika7h Date: Wed, 3 Sep 2014 16:10:56 +0200 Subject: [PATCH] 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. --- modules/wolfgame.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/wolfgame.py b/modules/wolfgame.py index a114e99..c5e48c9 100644 --- a/modules/wolfgame.py +++ b/modules/wolfgame.py @@ -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):