ZNC_CONFIG=${ZNC_CONFIG_PATH}/configs/znc.conf
EXTERNAL_CONFIG=0
+DISABLED=
RUNAS_USER=
RUNAS_GROUP=
local znc_config_path
local znc_pem_file
+ config_get_bool DISABLED "$znc" disabled 0
+
+ [ "$DISABLED" -eq 0 ] || return 0
+
config_get znc_config_path "$znc" znc_config_path
config_get RUNAS_USER "$znc" runas_user
config_load znc
config_foreach znc_global znc
+ if [ "$DISABLED" -eq 1 ]; then
+ return 0
+ fi
+
if [ "$EXTERNAL_CONFIG" -eq 0 ]
then
config_foreach add_listener listener