hostserv: keep the code comment neutral

Drop the name-drop from the normalize_vhost comment; the credit stays in
the previous commit message.
This commit is contained in:
Jean Chevronnet 2026-07-13 23:06:18 +00:00
parent 31d23cf6b3
commit 790ec51b28
No known key found for this signature in database

View file

@ -91,7 +91,6 @@ fn require_oper(me: &str, from: &Sender, ctx: &mut ServiceCtx) -> bool {
// would rewrite (an underscore becomes a hyphen) is rewritten here first. This
// keeps what we store identical to what shows on the network, so two inputs
// that would collapse to the same host are detected as one.
// (Recommended by siniStar — the ns_nethost normalisation approach.)
pub(crate) fn normalize_vhost(spec: &str) -> String {
let (ident, host) = match spec.split_once('@') {
Some((i, h)) => (Some(i), h),