Hello Im trying to make a channel limit script this is what I've done so far

on 1:JOIN:#chan: /MODE #chan +l $calc($nick(#chan,0) +2)
on 1:quit: /MODE #chan +l $calc($nick(#chan,0) +1)
on 1:part:#chan: /MODE #chan +l $calc($nick(#chan,0) +1)

but I need some sort of delay between them so it would actually work properly...

I mean I need it to set a limit when a nick joins but I dont want the script to change the limit right away I need it to wait a couple of secods to change the limit so u would not end up having a "funny" guy flooding with nicks or something like that.

Thank you very much any suggestiong or help of anykind would be greatly appreciated !!