kicknorejoin channel mode (+J <secs>)
This commit is contained in:
parent
8dc51a281b
commit
37ea5d277d
5 changed files with 66 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue