Allows !v to view votes in PM. Closes #106.

This commit is contained in:
Vgr E.Barry 2015-01-11 19:29:34 -05:00
parent 982d6cb697
commit c29ed805e1

View File

@ -3356,17 +3356,17 @@ def no_lynch(cli, nick, chan, rest):
chk_decision(cli) chk_decision(cli)
return return
@cmd("lynch", "vote", "v", game=True, playing=True) @cmd("lynch", "vote", "v", game=True, playing=True, pm=True)
def vote(cli, nick, chan, rest): def vote(cli, nick, chan, rest):
"""Use this to vote for a candidate to be lynched.""" """Use this to vote for a candidate to be lynched."""
if not rest:
show_votes(cli, nick, chan, rest)
return
if chan != botconfig.CHANNEL: if chan != botconfig.CHANNEL:
return return
rest = re.split(" +",rest)[0].strip() rest = re.split(" +",rest)[0].strip()
if not rest:
show_votes(cli, nick, chan, rest)
return
if var.PHASE != "day": if var.PHASE != "day":
cli.notice(nick, ("Lynching is only allowed during the day. "+ cli.notice(nick, ("Lynching is only allowed during the day. "+
"Please wait patiently for morning.")) "Please wait patiently for morning."))