summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-12-20 20:24:40 -0500
committerAdam <Adam@anope.org>2013-12-20 20:24:40 -0500
commite792865a049f6028b42a19ea0f55a77f7364960c (patch)
tree2fba4e744922d94dcc2a58272569a5768a367a0e
parent2b5a1d8c8f5be502462843c3635a76cf1724f817 (diff)
Fix reading unconfirmed expire config value when register type is set to mail
-rw-r--r--modules/commands/ns_register.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/commands/ns_register.cpp b/modules/commands/ns_register.cpp
index b38cf750d..6ec6c2175 100644
--- a/modules/commands/ns_register.cpp
+++ b/modules/commands/ns_register.cpp
@@ -215,14 +215,14 @@ class CommandNSRegister : public Command
if (nsregister.equals_ci("admin"))
{
nc->Extend<bool>("UNCONFIRMED");
- source.Reply(_("All new accounts must be validated by an administrator. Please wait for your registration to be confirmed."));
+ // User::Identify() called below will notify the user that their registration is pending
}
else if (nsregister.equals_ci("mail"))
{
nc->Extend<bool>("UNCONFIRMED");
if (SendRegmail(u, na, source.service))
{
- time_t unconfirmed_expire = Config->GetModule("nickserv")->Get<time_t>("unconfirmedexpire", "1d");
+ time_t unconfirmed_expire = Config->GetModule("ns_register")->Get<time_t>("unconfirmedexpire", "1d");
BotInfo *bi;
Anope::string cmd;
if (Command::FindCommandFromService("nickserv/confirm", bi, cmd))