akick: match extbans (account/realname/realmask/unauthed) using the ident, real host and real name the UID carries but was discarding
All checks were successful
CI / check (push) Successful in 4m0s
All checks were successful
CI / check (push) Successful in 4m0s
This commit is contained in:
parent
bc4fada354
commit
426fc694a2
8 changed files with 202 additions and 26 deletions
|
|
@ -625,9 +625,9 @@ impl ChannelInfo {
|
|||
.is_some_and(|a| echo_api::level_caps(&a.level).op)
|
||||
}
|
||||
|
||||
/// The matching auto-kick entry for `hostmask` (nick!user@host), if any.
|
||||
pub fn akick_match(&self, hostmask: &str) -> Option<&ChanAkick> {
|
||||
self.akick.iter().find(|k| glob_match(&k.mask, hostmask))
|
||||
/// The auto-kick entry matching a live user (plain host mask or extban), if any.
|
||||
pub fn akick_match(&self, target: &echo_api::BanTarget) -> Option<&ChanAkick> {
|
||||
self.akick.iter().find(|k| echo_api::akick_matches(&k.mask, target))
|
||||
}
|
||||
|
||||
/// The mode string services keep applied: +r plus the lock.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue