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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user