From fca421aa2a55e1211738368c1f2255ef31f942e8 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Wed, 25 Jun 2025 17:36:16 +0100 Subject: [PATCH] Fix resetpass confirming accounts when not using email confirmation. Fixes MantisBT bug 1734. --- modules/commands/ns_resetpass.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/commands/ns_resetpass.cpp b/modules/commands/ns_resetpass.cpp index 09427e38a..15ea09252 100644 --- a/modules/commands/ns_resetpass.cpp +++ b/modules/commands/ns_resetpass.cpp @@ -106,7 +106,9 @@ class NSResetPass : public Module else if (passcode.equals_cs(ri->code)) { reset.Unset(nc); - nc->Shrink("UNCONFIRMED"); + + if (Config->GetModule("nickserv")->Get("registration").equals_ci("mail")) + nc->Shrink("UNCONFIRMED"); Log(LOG_COMMAND, source, &commandnsresetpass) << "to confirm RESETPASS and forcefully identify as " << na->nick;