Add InfoServ, unifying network bulletins onto the news store
InfoServ becomes the dedicated home for network information bulletins, backed by the same event-sourced news store OperServ NEWS used — one place to post, not two. POST/LIST/DEL manage public bulletins (shown to every user on connect); OPOST/OLIST/ODEL the oper ones (shown to operators on login). Anyone may LIST the public bulletins; posting/removing is admin- only. The engine's existing connect/login display hooks render them unchanged. The OperServ NEWS command is retired accordingly (the news events and the display path stay). Default service.
This commit is contained in:
parent
1e8a5eab36
commit
8d495a948e
9 changed files with 152 additions and 101 deletions
|
|
@ -22,6 +22,7 @@ use fedserv_statserv::StatServ;
|
|||
use fedserv_hostserv::HostServ;
|
||||
use fedserv_operserv::OperServ;
|
||||
use fedserv_diceserv::DiceServ;
|
||||
use fedserv_infoserv::InfoServ;
|
||||
use fedserv_example::ExampleServ;
|
||||
use fedserv_inspircd::InspIrcd;
|
||||
use fedserv_nickserv::NickServ;
|
||||
|
|
@ -95,6 +96,11 @@ async fn main() -> Result<()> {
|
|||
uid: format!("{}AAAAAI", cfg.server.sid),
|
||||
}));
|
||||
}
|
||||
if enabled("infoserv") {
|
||||
services.push(Box::new(InfoServ {
|
||||
uid: format!("{}AAAAAJ", cfg.server.sid),
|
||||
}));
|
||||
}
|
||||
if enabled("example") {
|
||||
services.push(Box::new(ExampleServ {
|
||||
uid: format!("{}AAAAAC", cfg.server.sid),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue