Merge pull request #200 from lutoma/no-start-retract-query

Only allow retracting start votes in the main channel
This commit is contained in:
jacob1 2015-12-04 00:59:50 -05:00
commit 7a177a6360

View File

@ -5140,6 +5140,7 @@ def retract(cli, nick, chan, rest):
with var.GRAVEYARD_LOCK, var.WARNING_LOCK: with var.GRAVEYARD_LOCK, var.WARNING_LOCK:
if var.PHASE == "join": if var.PHASE == "join":
if chan == botconfig.CHANNEL:
if not nick in var.START_VOTES: if not nick in var.START_VOTES:
cli.notice(nick, messages["start_novote"]) cli.notice(nick, messages["start_novote"])
else: else: