If 'D' is found in cfg(chanlock:mode), then when floodnet is detected, also enable secure mode for cfg(chanlock:time) -- but do not voice all existing users in channel.
Only try to set that mode (and enable secure mode) if cfg(ircd) is set to '1' (ircu based such as Undernet.& Quakenet).
Ensure channel mode is set back to 'on' when timer expires, as well as mode removal. Can't just unset mode and let secure mode get turned off automatically through existing functionality-- because that would devoice all previously voiced users, too. Unless we maintain a cache of existing voiced users first, and do not devoice those ones.
This will be less restrictive than using mode +i or even +i and avoids disruption from more joining clients if the channel wasn't locked down with such modes.
If 'D' is found in cfg(chanlock:mode), then when floodnet is detected, also enable secure mode for cfg(chanlock:time) -- but do not voice all existing users in channel.
Only try to set that mode (and enable secure mode) if cfg(ircd) is set to '1' (ircu based such as Undernet.& Quakenet).
Ensure channel mode is set back to 'on' when timer expires, as well as mode removal. Can't just unset mode and let secure mode get turned off automatically through existing functionality-- because that would devoice all previously voiced users, too. Unless we maintain a cache of existing voiced users first, and do not devoice those ones.
This will be less restrictive than using mode +i or even +i and avoids disruption from more joining clients if the channel wasn't locked down with such modes.