Allow players to join the game after being pinged.
Check for and enforce a minimum wait time when ping command is used to avoid leaving players behind after pinging them.
This commit is contained in:
parent
776be63679
commit
fbaeb31455
@ -273,6 +273,10 @@ def pinger(cli, nick, chan, rest):
|
||||
cli.msg(chan, "PING! "+" ".join(TO_PING))
|
||||
var.PINGING = False
|
||||
|
||||
minimum = datetime.now() + timedelta(seconds=var.PING_MIN_WAIT)
|
||||
if var.CAN_START_TIME < minimum:
|
||||
var.CAN_START_TIME = minimum
|
||||
|
||||
decorators.unhook(HOOKS, 800)
|
||||
|
||||
cli.who(chan)
|
||||
|
@ -1,4 +1,5 @@
|
||||
PING_WAIT = 300 # Seconds
|
||||
PING_MIN_WAIT = 30
|
||||
MINIMUM_WAIT = 60
|
||||
EXTRA_WAIT = 20
|
||||
MAXIMUM_WAITED = 2 # limit for amount of !wait's
|
||||
|
Loading…
x
Reference in New Issue
Block a user