; --- Multi-Channel Dynamic Limit & Auto-Voice ---
; Purpose: +vl (+1 to limit and voice) after 45s on join.
; Immediate -l (limit reduction) on Part/Kick/Quit.
; On Join: Start a unique 45s timer for the user and channel
on *:JOIN:#: {
.timer $+ $+(limit_,$chan,_,$nick) 1 45 set_limit_and_voice $chan $nick
}
; Combined Delay: Voices the user and increments the limit simultaneously
alias set_limit_and_voice {
var %chan = $1, %nick = $2
if (%nick ison %chan) && ($me isop %chan) {
; Calculate: current users + 1
var %new_limit = $calc($nick(%chan, 0) + 1)
mode %chan +vl %nick %new_limit
}
}
; Immediate cleanup on Part
on *:PART:#: { update_limit $chan }
; Immediate cleanup on Kick (with hardened math for race conditions)
on *:KICK:#: {
if ($me isop $chan) {
; Subtract the kicked user if they are still counted in the nicklist
var %count = $nick($chan, 0)
if ($knick ison $chan) { var %count = $calc(%count - 1) }
var %new_limit = $calc(%count + 1)
if ($chan($chan).limit != %new_limit) { mode $chan +l %new_limit }
}
}
; Immediate cleanup on Quit (checks all shared channels)
on *:QUIT: {
var %i = 1
while ($comchan($nick, %i)) {
update_limit $v1
inc %i
}
}
; Global alias to handle the limit math
alias update_limit {
if ($1 && $me isop $1) {
var %new_limit = $calc($nick($1, 0) + 1)
if ($chan($1).limit != %new_limit) {
mode $1 +l %new_limit
}
}
}
We use cookies to run the site, measure traffic, and (with your permission) show more relevant content and ads.
You can change your preferences at any time.
Choose what you allow. Strictly necessary cookies may still be used even if you decline.
The numbers below reflect only first-party cookies detected in your browser.
Current status—
Cookies detected (first-party)0
This counter only lists first-party cookies visible via document.cookie.
Depending on your browser or ad blocker, it may stay at 0 until cookies are set (usually after consent + reload).
Third-party cookies are not detectable here.
Last updated—
Analytics
0 detected • 0 known
Measures site traffic (page views, visit duration, errors) to help improve the site. Example: Google Analytics or equivalent tags.
View detected cookies
Functional
0 detected • 0 known
Remembers your choices and enhances your experience (preferences, security, sessions). Disabling may degrade some features.
View detected cookies
Advertising
0 detected • 0 known
Used to measure campaigns, limit repetition, and show more relevant ads (subject to your consent).
View detected cookies
Security (always on)
Anti-abuse protection, site security
Enabled
Some strictly necessary storage may be used to protect the site (e.g. fraud prevention / security).
Unknown / Other
0 detected
Info
Cookies that don't match any known category. These may come from browser extensions,
third-party scripts, or services not yet classified. Their origin is shown when possible.
View detected cookies
Third-Party Services
0 detected on page
Scan
Third-party scripts and services loaded on this page. These may set their own cookies
which are not readable via document.cookie due to browser security.