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

@ -12,6 +12,7 @@ pub mod flood;
pub mod markread;
pub mod metadata;
pub mod multiline;
pub mod reputation;
pub mod snoop;
use crate::command::Command;
@ -28,6 +29,7 @@ pub fn default_modules() -> Vec<Box<dyn Module>> {
Box::new(metadata::Metadata),
Box::new(markread::MarkRead),
Box::new(multiline::Multiline),
Box::new(reputation::ReputationMod::default()),
]
}
@ -40,5 +42,6 @@ pub fn module_commands() -> Vec<Box<dyn Command>> {
.chain(markread::commands())
.chain(multiline::commands())
.chain(chathistory::commands())
.chain(reputation::commands())
.collect()
}