Freeze ChanServ MODE/ACCESS/FLAGS on suspended channels and make PEACE group-access-aware

This commit is contained in:
Jean Chevronnet 2026-07-19 15:59:00 +00:00
parent 16d2a5035a
commit 8f41fc9903
No known key found for this signature in database
4 changed files with 14 additions and 2 deletions

View file

@ -69,6 +69,7 @@ fn is_founder(me: &str, from: &Sender, chan: &str, ctx: &mut ServiceCtx, db: &dy
ctx.notice(me, from.uid, format!("Only \x02{chan}\x02's founder can change access."));
false
}
Some(_) => true,
// Founder, but a staff-suspended channel is frozen — no access changes.
Some(_) => !super::suspended_block(me, from, chan, ctx, db),
}
}