reputation module: per-IP score (tick accrual + persistence) + REPUTATION command; on_tick module hook

This commit is contained in:
Jean Chevronnet 2026-08-09 07:28:48 +00:00
parent 5f3ae2123d
commit 789c2ca14f
5 changed files with 162 additions and 0 deletions

View file

@ -66,4 +66,6 @@ pub trait Module: Send {
fn on_join(&mut self, srv: &mut Server, uid: Uid, chan: &str) {}
fn on_part(&mut self, srv: &mut Server, uid: Uid, chan: &str, reason: &str) {}
fn on_user_quit(&mut self, srv: &mut Server, uid: Uid, reason: &str) {}
/// Fired on the background timer (every `TICK_SECS`).
fn on_tick(&mut self, srv: &mut Server) {}
}