diff options
| author | Adam <Adam@anope.org> | 2017-01-08 13:08:04 -0500 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2017-01-08 13:08:04 -0500 |
| commit | 7b1154de69c175ecf9e6042a5c5f4cf89fa222e7 (patch) | |
| tree | 1eb979068da02212b96148b7c5c2fc5ab2e79853 /modules | |
| parent | 46aeb8b70b116ffe37a6f1a72ddb9c69b7cccc98 (diff) | |
ns_register: notify users of unconfirmed accounts on register when there is no user too
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/commands/ns_register.cpp | 9 |
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.")); + } } } |
