xline_db: persist x-lines/cbans to disk, reload on start

This commit is contained in:
Jean Chevronnet 2026-08-09 01:15:43 +00:00
parent e2a4a3e248
commit 6be8e5ebcb
3 changed files with 81 additions and 2 deletions

View file

@ -71,8 +71,10 @@ impl Ircd {
event_tx: Sender<Event>,
conn_counter: std::sync::Arc<std::sync::atomic::AtomicU64>,
) -> Ircd {
let mut server = Server::new(cfg, event_tx, conn_counter);
server.load_xlines(); // restore persisted bans (m_xline_db)
Ircd {
server: Server::new(cfg, event_tx, conn_counter),
server,
commands: command_table(),
modules: crate::modules::default_modules(),
}