connect: oper can dial a configured server link on demand

This commit is contained in:
Jean Chevronnet 2026-08-08 20:19:14 +00:00
parent cc3240c04f
commit f5cc12e809
4 changed files with 60 additions and 8 deletions

View file

@ -66,9 +66,13 @@ pub struct Ircd {
}
impl Ircd {
pub fn new(cfg: Config, event_tx: Sender<Event>) -> Ircd {
pub fn new(
cfg: Config,
event_tx: Sender<Event>,
conn_counter: std::sync::Arc<std::sync::atomic::AtomicU64>,
) -> Ircd {
Ircd {
server: Server::new(cfg, event_tx),
server: Server::new(cfg, event_tx, conn_counter),
commands: command_table(),
modules: crate::modules::default_modules(),
}