fixed bugs
This commit is contained in:
parent
8ce4b6b75b
commit
7440399957
@ -447,9 +447,13 @@ def leave(cli, what, nick):
|
|||||||
if var.PHASE == "none" and what.startswith("!"):
|
if var.PHASE == "none" and what.startswith("!"):
|
||||||
cli.notice(nick, "No game is currently running.")
|
cli.notice(nick, "No game is currently running.")
|
||||||
return
|
return
|
||||||
|
elif var.PHASE == "none":
|
||||||
|
return
|
||||||
if nick not in var.list_players() and what.startswith("!"): # not playing
|
if nick not in var.list_players() and what.startswith("!"): # not playing
|
||||||
cli.notice(nick, "You're not currently playing.")
|
cli.notice(nick, "You're not currently playing.")
|
||||||
return
|
return
|
||||||
|
elif nick not in var.list_players():
|
||||||
|
return
|
||||||
msg = ""
|
msg = ""
|
||||||
if what in ("!quit", "!leave"):
|
if what in ("!quit", "!leave"):
|
||||||
msg = ("\u0002{0}\u0002 died of an unknown disease. "+
|
msg = ("\u0002{0}\u0002 died of an unknown disease. "+
|
||||||
@ -506,7 +510,7 @@ def transition_day(cli):
|
|||||||
var.DAY_START_TIME = datetime.now()
|
var.DAY_START_TIME = datetime.now()
|
||||||
if not var.NIGHT_START_TIME:
|
if not var.NIGHT_START_TIME:
|
||||||
for plr in var.list_players():
|
for plr in var.list_players():
|
||||||
cli.msg(plr, "You are a \u0002{0}\u0002.".format(var.get_role(plr))
|
cli.msg(plr, "You are a \u0002{0}\u0002.".format(var.get_role(plr)))
|
||||||
begin_day(cli)
|
begin_day(cli)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user