!quit: tell player how long until they can quit
This commit is contained in:
parent
09b5a62a9b
commit
b1e59c4f77
@ -2731,9 +2731,9 @@ def leave_game(cli, nick, chan, rest):
|
|||||||
else:
|
else:
|
||||||
population = (" New player count: \u0002{0}\u0002").format(lpl)
|
population = (" New player count: \u0002{0}\u0002").format(lpl)
|
||||||
else:
|
else:
|
||||||
dur = (datetime.now() - var.GAME_START_TIME).total_seconds()
|
dur = int(var.START_QUIT_DELAY - (datetime.now() - var.GAME_START_TIME).total_seconds())
|
||||||
if var.START_QUIT_DELAY and dur < var.START_QUIT_DELAY:
|
if var.START_QUIT_DELAY and dur:
|
||||||
cli.notice(nick, "The game already started!")
|
cli.notice(nick, "The game already started! If you still want to quit, try again in {0} second{1}.".format(dur, "" if dur == 1 else "s"))
|
||||||
return
|
return
|
||||||
population = ""
|
population = ""
|
||||||
if nick not in var.list_players() or nick in var.DISCONNECTED.keys(): # not playing
|
if nick not in var.list_players() or nick in var.DISCONNECTED.keys(): # not playing
|
||||||
|
Loading…
x
Reference in New Issue
Block a user