From e792865a049f6028b42a19ea0f55a77f7364960c Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 20 Dec 2013 20:24:40 -0500 Subject: [PATCH] Fix reading unconfirmed expire config value when register type is set to mail --- modules/commands/ns_register.cpp | 4 ++-- 1 file 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("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("UNCONFIRMED"); if (SendRegmail(u, na, source.service)) { - time_t unconfirmed_expire = Config->GetModule("nickserv")->Get("unconfirmedexpire", "1d"); + time_t unconfirmed_expire = Config->GetModule("ns_register")->Get("unconfirmedexpire", "1d"); BotInfo *bi; Anope::string cmd; if (Command::FindCommandFromService("nickserv/confirm", bi, cmd))