channels/whois: validate +k/+l, cap and case-fold ban lists, honour -n for externals, hide +s/+p/+i from whois/who/names, 301 in whois, conf-key the join/nickflood lockout

This commit is contained in:
Jean Chevronnet 2026-08-16 17:56:24 +00:00
parent 4028cd3c84
commit 579c321670
5 changed files with 90 additions and 25 deletions

View file

@ -139,6 +139,7 @@ pub const ERR_CHANNELISFULL: u16 = 471;
pub const ERR_UNKNOWNMODE: u16 = 472;
pub const ERR_INVITEONLYCHAN: u16 = 473;
pub const ERR_BADCHANNELKEY: u16 = 475;
pub const ERR_BANLISTFULL: u16 = 478; // +b/+e/+I list at its per-channel cap
pub const ERR_CHANOPRIVSNEEDED: u16 = 482;
pub const ERR_SECUREONLYCHAN: u16 = 489; // can't join a +z channel without TLS
pub const ERR_ALLMUSTSSL: u16 = 490; // can't set +z while a member isn't on TLS