Instead of just erroring, just show all the current votes
This commit is contained in:
parent
93546dee9d
commit
bbb7564a0c
@ -1563,6 +1563,11 @@ def vote(cli, nick, chann_, rest):
|
|||||||
"""Use this to vote for a candidate to be lynched"""
|
"""Use this to vote for a candidate to be lynched"""
|
||||||
chan = botconfig.CHANNEL
|
chan = botconfig.CHANNEL
|
||||||
|
|
||||||
|
rest = re.split(" +",rest)[0].strip().lower()
|
||||||
|
|
||||||
|
if not rest:
|
||||||
|
show_votes(cli, nick, chan, rest)
|
||||||
|
return
|
||||||
if var.PHASE in ("none", "join"):
|
if var.PHASE in ("none", "join"):
|
||||||
cli.notice(nick, "No game is currently running.")
|
cli.notice(nick, "No game is currently running.")
|
||||||
return
|
return
|
||||||
@ -1580,11 +1585,6 @@ def vote(cli, nick, chann_, rest):
|
|||||||
|
|
||||||
pl = var.list_players()
|
pl = var.list_players()
|
||||||
pl_l = [x.strip().lower() for x in pl]
|
pl_l = [x.strip().lower() for x in pl]
|
||||||
rest = re.split(" +",rest)[0].strip().lower()
|
|
||||||
|
|
||||||
if not rest:
|
|
||||||
cli.notice(nick, "Not enough parameters.")
|
|
||||||
return
|
|
||||||
|
|
||||||
matches = 0
|
matches = 0
|
||||||
for player in pl_l:
|
for player in pl_l:
|
||||||
|
Loading…
Reference in New Issue
Block a user