To create new wiki account, please join us on #znc at Libera.Chat and ask admins to create a wiki account for you. You can say thanks to spambots for this inconvenience.

Manualconnect

From ZNC
Revision as of 03:55, 28 January 2012 by >Crocket
Jump to navigation Jump to search

While znc is started, znc automatically connects to networks with IRCConnectEnabled=true in znc.conf

Even if you set IRCConnectEnabled to false, IRCConnectEnabled could be set to true again in znc.conf for currently connected networks when

1) you execute /znc saveconfig, shutdown, or restart.

2) you save settings in webadmin.

3) znc receives SIGUSR1 signal.

("/znc" is the same as "/msg *status")


manualconnect prevents znc from automatically connecting to networks with IRCConnectEnabled=true while znc is started.

Installing

The code for this module can be found at https://github.com/crocket/znc/blob/manualconnect/modules/extra/manualconnect.cpp

Follow the guideline in Compiling modules to build it.

Usage

Arguments

This global module takes no arguments.

Read loading modules to learn more about loading modules.

Cautions about rehash

Currently, znc rehashes when

1) znc receives SIGHUP signal.

2) you execute "/znc rehash"


If znc rehashes, IRCConnectEnabled settings of the running znc session are overridden by those of znc.conf.

And some networks can be automatically connected or automatically disconnected unexpectedly.

So if you need to rehash, follow the instructions below.


1) Make znc save the settings of the running znc session by executing "/znc saveconfig" or sending SIGUSR1 to znc process.

2) Modify znc.conf if you want to.

3) Make znc rehash

Note

Please contact crocket at crockabiscuit at gmail dot com if you have any questions or suggestions about this module.