1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-06-29 15:06:37 +02:00

Fix set::authentication-prompt::enabled 'no' being ignored (#243)

This commit is contained in:
Valerie Pond
2022-12-21 08:01:47 +00:00
committed by GitHub
parent d4dbf62781
commit 7dedbf1a69
+2 -2
View File
@@ -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() */