move metadata out of core into its own module file
This commit is contained in:
parent
ee98fade40
commit
50a95c6686
4 changed files with 213 additions and 164 deletions
|
|
@ -8,6 +8,7 @@ pub mod cloak;
|
|||
pub mod dnsbl;
|
||||
pub mod filter;
|
||||
pub mod flood;
|
||||
pub mod metadata;
|
||||
pub mod snoop;
|
||||
|
||||
use crate::command::Command;
|
||||
|
|
@ -21,11 +22,15 @@ pub fn default_modules() -> Vec<Box<dyn Module>> {
|
|||
Box::new(cloak::Cloak),
|
||||
Box::new(antimixedutf8::AntiMixedUtf8),
|
||||
Box::new(filter::Filter),
|
||||
Box::new(metadata::Metadata),
|
||||
]
|
||||
}
|
||||
|
||||
/// Commands contributed by modules (chained into the core command table), so a
|
||||
/// module that adds a command keeps it in its own file, InspIRCd-style.
|
||||
pub fn module_commands() -> Vec<Box<dyn Command>> {
|
||||
filter::commands().into_iter().collect()
|
||||
filter::commands()
|
||||
.into_iter()
|
||||
.chain(metadata::commands())
|
||||
.collect()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue