connect: oper can dial a configured server link on demand
This commit is contained in:
parent
cc3240c04f
commit
f5cc12e809
4 changed files with 60 additions and 8 deletions
|
|
@ -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(),
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue