diff --git a/src/modules/authprompt.c b/src/modules/authprompt.c index da0d49642..de5ea508b 100644 --- a/src/modules/authprompt.c +++ b/src/modules/authprompt.c @@ -118,7 +118,7 @@ static void init_config(void) { /* This sets some default values */ memset(&cfg, 0, sizeof(cfg)); - cfg.enabled = 0; + cfg.enabled = 1; } static void config_postdefaults(void) @@ -423,7 +423,7 @@ int authprompt_find_tkline_match(Client *client, TKL *tkl) int authprompt_pre_connect(Client *client) { /* If the user is tagged as auth required and not logged in, then.. */ - if (SEUSER(client) && !IsLoggedIn(client)) + if (SEUSER(client) && !IsLoggedIn(client) && cgf.enabled) { authprompt_send_auth_required_message(client); return HOOK_DENY; /* do not process register_user() */