From 7b1154de69c175ecf9e6042a5c5f4cf89fa222e7 Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 8 Jan 2017 13:08:04 -0500 Subject: [PATCH] ns_register: notify users of unconfirmed accounts on register when there is no user too --- modules/commands/ns_register.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/modules/commands/ns_register.cpp b/modules/commands/ns_register.cpp index 1595d51a8..7c1d7e4f8 100644 --- a/modules/commands/ns_register.cpp +++ b/modules/commands/ns_register.cpp @@ -234,7 +234,6 @@ class CommandNSRegister : public Command if (nsregister.equals_ci("admin")) { nc->Extend("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.")); + } } }