1
0
mirror of https://github.com/anope/anope.git synced 2026-07-10 15:03:13 +02:00

Fix reading unconfirmed expire config value when register type is set to mail

This commit is contained in:
Adam
2013-12-20 20:24:40 -05:00
parent 2b5a1d8c8f
commit e792865a04
+2 -2
View File
@@ -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))