add SIGNORE: personal mutual server-side ignore across channels and PMs

This commit is contained in:
Jean Chevronnet 2026-08-20 14:48:17 +00:00
parent 2c9ce18cd7
commit 6c5f330746
No known key found for this signature in database
GPG key ID: 439666D63A9477E4
5 changed files with 107 additions and 1 deletions

View file

@ -599,7 +599,8 @@ pub(crate) fn deliver(s: &mut Server, uid: Uid, params: &[String], notice: bool)
}
// SILENCE: if the recipient silenced the sender, drop it silently — the
// sender is never told (that's the point), but still gets their own echo.
let silenced = s.is_silenced(tuid, &prefix);
// SIGNORE is mutual: drop if either party server-ignores the other.
let silenced = s.is_silenced(tuid, &prefix) || s.signore_blocks(uid, tuid);
let pm = format!(":{prefix} {cmd} {target} :{text}");
let ctags = s.line_ctags.clone();
let msgid = s.next_msgid();