1
0
mirror of https://github.com/anope/anope.git synced 2026-07-08 22:53:12 +02:00

ns_register: notify users of unconfirmed accounts on register when there is no user too

This commit is contained in:
Adam
2017-01-08 13:08:04 -05:00
parent 46aeb8b70b
commit 7b1154de69
+8 -1
View File
@@ -234,7 +234,6 @@ class CommandNSRegister : public Command
if (nsregister.equals_ci("admin"))
{
nc->Extend<bool>("UNCONFIRMED");
// User::Identify() called below will notify the user that their registration is pending
}
else if (nsregister.equals_ci("mail"))
{
@@ -249,9 +248,17 @@ class CommandNSRegister : public Command
if (u)
{
// This notifies the user that if their registration is unconfirmed
u->Identify(na);
u->lastnickreg = Anope::CurTime;
}
else if (nc->HasExt("UNCONFIRMED"))
{
if (nsregister.equals_ci("admin"))
source.Reply(_("All new accounts must be validated by an administrator. Please wait for your registration to be confirmed."));
else if (nsregister.equals_ci("mail"))
source.Reply(_("Your email address is not confirmed. To confirm it, follow the instructions that were emailed to you."));
}
}
}