diff options
author | Adam <Adam@anope.org> | 2017-04-20 15:37:52 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2017-04-20 15:37:52 -0400 |
commit | d68778166ace1af358f1e2391454a9d3f1aafbae (patch) | |
tree | 3a221c2a25d04ad5342e9806411f1bafc49774b0 | |
parent | 70c9dccee89818da4c2522266f6fb35a294fd08d (diff) |
ns_register: notify users of unconfirmed accounts on register when there is no user too
-rw-r--r-- | modules/nickserv/register.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/modules/nickserv/register.cpp b/modules/nickserv/register.cpp index 13c18e0b3..b2fddeab6 100644 --- a/modules/nickserv/register.cpp +++ b/modules/nickserv/register.cpp @@ -265,7 +265,6 @@ class CommandNSRegister : public Command if (nsregister.equals_ci("admin")) { nc->SetUnconfirmed(true); - // User::Identify() called below will notify the user that their registration is pending } else if (nsregister.equals_ci("mail")) { @@ -280,9 +279,17 @@ class CommandNSRegister : public Command if (u) { + // This notifies the user that their registration is unconfirmed u->Identify(na); u->lastnickreg = Anope::CurTime; } + else if (nc->IsUnconfirmed()) + { + 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.")); + } } bool OnHelp(CommandSource &source, const Anope::string &subcommand) override |