reputation module: per-IP score (tick accrual + persistence) + REPUTATION command; on_tick module hook
This commit is contained in:
parent
5f3ae2123d
commit
789c2ca14f
5 changed files with 162 additions and 0 deletions
|
|
@ -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) {}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue