diff --git a/data/modules.example.conf b/data/modules.example.conf index 4ec504f0b..ebd463237 100644 --- a/data/modules.example.conf +++ b/data/modules.example.conf @@ -304,13 +304,13 @@ module { name = "help" } * * If not set, then registration is not blocked. */ - #disable_register_reason = "To register on this network visit https://some.misconfigured.site/register" + #disable_register_reason = "To register on this network visit https://some.misconfigured.site.example/register" /* * If set, the reason to give the users who try to "/msg NickServ SET EMAIL". * If not set, then email changing is not blocked. */ - #disable_email_reason = "To change your email address visit https://some.misconfigured.site" + #disable_email_reason = "To change your email address visit https://some.misconfigured.site.example" } /* @@ -691,13 +691,13 @@ module * If set, the reason to give the users who try to "/msg NickServ REGISTER". * If not set, then registration is not blocked. */ - #disable_reason = "To register on this network visit https://some.misconfigured.site/register" + #disable_reason = "To register on this network visit https://some.misconfigured.site.example/register" /* * If set, the reason to give the users who try to "/msg NickServ SET EMAIL". * If not set, then email changing is not blocked. */ - #disable_email_reason = "To change your email address visit https://some.misconfigured.site" + #disable_email_reason = "To change your email address visit https://some.misconfigured.site.example" } /* diff --git a/modules/nickserv/ns_resetpass.cpp b/modules/nickserv/ns_resetpass.cpp index 55a7fd60c..c3cc10934 100644 --- a/modules/nickserv/ns_resetpass.cpp +++ b/modules/nickserv/ns_resetpass.cpp @@ -133,7 +133,10 @@ public: } reset.Unset(nc); - nc->Shrink("UNCONFIRMED"); + + if (Config->GetModule("nickserv").Get("registration").equals_ci("mail")) + nc->Shrink("UNCONFIRMED"); + if (source.GetUser()) source.GetUser()->Identify(na);