kicknorejoin channel mode (+J <secs>)

This commit is contained in:
Jean Chevronnet 2026-08-09 00:50:55 +00:00
parent 8dc51a281b
commit 37ea5d277d
5 changed files with 66 additions and 3 deletions

View file

@ -451,6 +451,9 @@ impl Command for Kick {
s.propagate_from_user(uid, &format!("KICK {chan} {victim} :{reason}")); // tell links
if let Some(ch) = s.channels.get_mut(&key) {
ch.members.remove(&tuid);
if ch.modes.kicknorejoin.is_some() {
ch.recent_kicks.insert(tuid, now()); // +J rejoin-delay clock
}
}
if let Some(u) = s.users.get_mut(&tuid) {
u.channels.remove(&key);