Allow !v as a shorthand for !votes in join phase too

This commit is contained in:
nyuszika7h 2015-03-22 14:21:45 +01:00
parent eb724bb3fc
commit 58eb321d3e

View File

@ -7104,10 +7104,11 @@ game.__doc__ = game_help
@cmd("vote", "v", pm=True) @cmd("vote", "v", pm=True)
def vote(cli, nick, chan, rest): def vote(cli, nick, chan, rest):
if var.PHASE == "join" and chan != nick: if rest:
return game(cli, nick, chan, rest) if var.PHASE == "join" and chan != nick:
elif rest: return game(cli, nick, chan, rest)
return lynch(cli, nick, chan, rest) else:
return lynch(cli, nick, chan, rest)
else: else:
return show_votes(cli, nick, chan, rest) return show_votes(cli, nick, chan, rest)