From d68778166ace1af358f1e2391454a9d3f1aafbae Mon Sep 17 00:00:00 2001 From: Adam Date: Thu, 20 Apr 2017 15:37:52 -0400 Subject: ns_register: notify users of unconfirmed accounts on register when there is no user too --- modules/nickserv/register.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 -- cgit