1
0
mirror of https://github.com/anope/anope.git synced 2026-06-12 19:14:47 +02:00

Fix resetpass confirming accounts when not using email confirmation.

Fixes MantisBT bug 1734.
This commit is contained in:
Sadie Powell
2025-06-25 17:36:16 +01:00
parent 035905d321
commit fca421aa2a
+3 -1
View File
@@ -106,7 +106,9 @@ class NSResetPass : public Module
else if (passcode.equals_cs(ri->code))
{
reset.Unset(nc);
nc->Shrink<bool>("UNCONFIRMED");
if (Config->GetModule("nickserv")->Get<const Anope::string>("registration").equals_ci("mail"))
nc->Shrink<bool>("UNCONFIRMED");
Log(LOG_COMMAND, source, &commandnsresetpass) << "to confirm RESETPASS and forcefully identify as " << na->nick;