Bound dice batches, game count, and report/help queues, and harden community votekick
This commit is contained in:
parent
64c4bbeae4
commit
b2ffc01e52
7 changed files with 59 additions and 7 deletions
|
|
@ -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."),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue