import echoircd — from-scratch irc daemon in native rust
This commit is contained in:
commit
9b12791774
38 changed files with 9757 additions and 0 deletions
19
src/modules/mod.rs
Normal file
19
src/modules/mod.rs
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
//! Optional, pluggable modules — echoIRCd's answer to InspIRCd's `src/modules/`.
|
||||
//! Each hooks lifecycle events via the [`crate::module::Module`] trait.
|
||||
|
||||
pub mod antimixedutf8;
|
||||
pub mod cloak;
|
||||
pub mod flood;
|
||||
pub mod snoop;
|
||||
|
||||
use crate::module::Module;
|
||||
|
||||
/// The modules loaded at boot. (Later: load by name from the config.)
|
||||
pub fn default_modules() -> Vec<Box<dyn Module>> {
|
||||
vec![
|
||||
Box::new(snoop::Snoop),
|
||||
Box::new(flood::Flood),
|
||||
Box::new(cloak::Cloak),
|
||||
Box::new(antimixedutf8::AntiMixedUtf8),
|
||||
]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue