Make every pseudo-client a first-class default service
GroupServ, ChanFix, ReportServ, HelpServ and DiceServ were left out of the default service suite, so they came up only when explicitly opted in — an add-on tier the others don't have. They are core services like any other: put them in default_services() so the standard suite is the full set of pseudo-clients, and correct the stale 'NickServ + ChanServ' default in the config comment, main.rs, README and MODULES.
This commit is contained in:
parent
de11939f2e
commit
dfc11bd1c4
3 changed files with 16 additions and 7 deletions
|
|
@ -53,9 +53,9 @@ async fn main() -> Result<()> {
|
|||
ts,
|
||||
));
|
||||
|
||||
// Bring up the service modules named in [modules] (default NickServ +
|
||||
// ChanServ). Each keeps a fixed uid suffix so its identity is stable no
|
||||
// matter which others are enabled.
|
||||
// Bring up the service modules named in [modules] (default: the full
|
||||
// standard suite — every pseudo-client). Each keeps a fixed uid suffix so
|
||||
// its identity is stable no matter which others are enabled.
|
||||
let enabled = |name: &str| cfg.modules.services.iter().any(|s| s == name);
|
||||
let mut services: Vec<Box<dyn engine::service::Service>> = Vec::new();
|
||||
if enabled("nickserv") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue