xline: broadcast the XLINE notice on remove and expire too, so it covers every x-line's whole lifecycle

This commit is contained in:
Jean Chevronnet 2026-08-21 15:03:36 +00:00
parent 6301b64509
commit 3ad67c6b52
No known key found for this signature in database
GPG key ID: 439666D63A9477E4
5 changed files with 69 additions and 30 deletions

View file

@ -78,7 +78,8 @@ pub fn handle(s: &mut Server, action: &str, params: &str) -> Result<String, RpcE
let mask = json::get_str(params, "mask")
.or_else(|| json::get_str(params, "name"))
.ok_or_else(|| RpcError::invalid_params("missing 'mask'"))?;
let removed = s.remove_xline(kind, &mask);
let setter = json::get_str(params, "setter").unwrap_or_else(|| "RPC".into());
let removed = s.remove_xline(kind, &mask, &setter);
if removed {
Ok(obj(&[("result", "true".into())]))
} else {