snomasks: make +s a parametric snomask mode with the standard category letters (acdfgjklnoqrtuvwx), route each server notice by category, RPL_SNOMASKIS 008; opers default to all and narrow with +s -c etc.
This commit is contained in:
parent
309201d7fb
commit
546f6279e7
16 changed files with 131 additions and 29 deletions
|
|
@ -48,7 +48,7 @@ impl Module for Filter {
|
|||
Some(u) => (u.prefix(), u.addr.ip().to_string()),
|
||||
None => return ModResult::Deny,
|
||||
};
|
||||
s.snotice(&format!(
|
||||
s.snotice_c('f', &format!(
|
||||
"FILTER: {mask} matched a filter (action={action}): {reason}"
|
||||
));
|
||||
match action.as_str() {
|
||||
|
|
@ -171,7 +171,7 @@ impl Command for FilterCmd {
|
|||
duration,
|
||||
reason,
|
||||
});
|
||||
s.snotice(&format!("{nick} added FILTER {pattern} (action={action})"));
|
||||
s.snotice_c('f', &format!("{nick} added FILTER {pattern} (action={action})"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue