on 1:JOIN:#channel:/mode $chan +l $calc($nick($chan,0) + 3)
on 1:PART:#channel:/mode $chan +l $calc($nick($chan,0) + 3)
Using that method although it might work, It will flood everytime someone joins.
A "solution" would be to check every few minutes and adjust the limit accordingly, for example;
On me:*:OP:[color:red]#channel:{
.timer $+ $chan 1 300 limitchk $chan
}
alias limitchk {
if ($me isop $1) { mode $$1 +l $calc($nick($1,0) + 3) }
else { .timer $+ $chan off }
}
[/color]
This will run on #channel, and set the limit every 5 minutes, 3 above what it already is, you can change the '300' in the above code, to increase or decrease the delay between limit changes (300 being 5 minutes).
Edit: If your trying to prevent a "flood" then download existing Join/Part flood scripts, if you look at your code it will, do the following (if only you are there for example).
* Username-1 has joined #channel
* You sets mode: +l 5
* Username-2 has joined #channel
* You sets mode: +l 6
* Username-3 has joined #channel
* You sets mode: +l 7
* Username-4 has joined #channel
* You sets mode: +l 8
* Username-5 has joined #channel
* You sets mode: +l 9
* Username-1 has left #channel
* You sets mode: +l 8
* Username-2 has left #channel
* You sets mode: +l 7
* Username-3 has left #channel
* You sets mode: +l 6
* Username-4 has left #channel
* You sets mode: +l 5
* Username-5 has left #channel
* You sets mode: +l 4
Undoubtably by the end of that you've done, 10 mode changes and the server will excess flood you off.
Eamonn.