Bound dice batches, game count, and report/help queues, and harden community votekick

This commit is contained in:
Jean Chevronnet 2026-07-19 13:34:48 +00:00
parent 64c4bbeae4
commit b2ffc01e52
No known key found for this signature in database
7 changed files with 59 additions and 7 deletions

View file

@ -11,7 +11,12 @@ pub fn handle(me: &str, from: &Sender, rest: &[&str], ctx: &mut ServiceCtx, db:
return;
}
let reason = reason_words.join(" ");
let reporter = from.account.unwrap_or(from.nick);
// Require identification, so the cooldown keys on a stable account rather than a
// spoofable nick a flooder can cycle to reset it.
let Some(reporter) = from.account else {
ctx.notice(me, from.uid, "Please identify to NickServ before filing a report.");
return;
};
match db.report_file(reporter, target, &reason) {
Some(id) => ctx.notice(me, from.uid, format!("Thanks — your report (\x02#{id}\x02) about \x02{target}\x02 has been sent to the staff.")),
None => ctx.notice(me, from.uid, "You just filed a report — please wait a moment before filing another."),