Fix rate limit affecting !fstart
This commit is contained in:
parent
59a6339729
commit
71a85bbd38
@ -5319,8 +5319,9 @@ def fstart(cli, nick, chan, rest):
|
|||||||
start(cli, nick, chan)
|
start(cli, nick, chan)
|
||||||
|
|
||||||
def start(cli, nick, chan, forced = False):
|
def start(cli, nick, chan, forced = False):
|
||||||
if (var.LAST_START and nick in var.LAST_START and var.LAST_START[nick] +
|
if (not forced and var.LAST_START and nick in var.LAST_START and
|
||||||
timedelta(seconds=var.START_RATE_LIMIT) > datetime.now()):
|
var.LAST_START[nick] + timedelta(seconds=var.START_RATE_LIMIT) >
|
||||||
|
datetime.now()):
|
||||||
cli.notice(nick, ("This command is rate-limited. Please wait a while "
|
cli.notice(nick, ("This command is rate-limited. Please wait a while "
|
||||||
"before using it again."))
|
"before using it again."))
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user