summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2017-01-08 13:08:04 -0500
committerAdam <Adam@anope.org>2017-01-08 13:08:04 -0500
commit7b1154de69c175ecf9e6042a5c5f4cf89fa222e7 (patch)
tree1eb979068da02212b96148b7c5c2fc5ab2e79853
parent46aeb8b70b116ffe37a6f1a72ddb9c69b7cccc98 (diff)
ns_register: notify users of unconfirmed accounts on register when there is no user too
-rw-r--r--modules/commands/ns_register.cpp9
1 files changed, 8 insertions, 1 deletions
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<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."));
+ }
}
}