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

Fix NickServ default nick expiry time.

This commit is contained in:
Robby-
2013-09-28 15:58:47 +02:00
committed by Adam
parent 44dd8d07d9
commit 4221a507cc
2 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -250,12 +250,12 @@ class ChanServCore : public Module, public ChanServService
{
if (!params.empty() || source.c || source.service != *ChanServ)
return;
time_t expire = Config->GetModule(this)->Get<time_t>("expire", "14d");
if (expire >= 86400)
time_t chanserv_expire = Config->GetModule(this)->Get<time_t>("expire", "14d");
if (chanserv_expire >= 86400)
source.Reply(_(" \n"
"Note that any channel which is not used for %d days\n"
"(i.e. which no user on the channel's access list enters\n"
"for that period of time) will be automatically dropped."), expire / 86400);
"for that period of time) will be automatically dropped."), chanserv_expire / 86400);
if (source.IsServicesOper())
source.Reply(_(" \n"
"Services Operators can also, depending on their access drop\n"
+3 -3
View File
@@ -448,7 +448,7 @@ class NickServCore : public Module, public NickServService
"Services Operators can also drop any nickname without needing\n"
"to identify for the nick, and may view the access list for\n"
"any nickname."));
time_t nickserv_expire = Config->GetModule(this)->Get<time_t>("expire");
time_t nickserv_expire = Config->GetModule(this)->Get<time_t>("expire", "21d");
if (nickserv_expire >= 86400)
source.Reply(_(" \n"
"Accounts that are not used anymore are subject to\n"
@@ -489,7 +489,7 @@ class NickServCore : public Module, public NickServService
if (Anope::NoExpire || Anope::ReadOnly)
return;
time_t nickserv_expire = Config->GetModule(this)->Get<time_t>("expire");
time_t nickserv_expire = Config->GetModule(this)->Get<time_t>("expire", "21d");
for (nickalias_map::const_iterator it = NickAliasList->begin(), it_end = NickAliasList->end(); it != it_end; )
{
@@ -520,7 +520,7 @@ class NickServCore : public Module, public NickServService
{
if (!na->nc->HasExt("UNCONFIRMED"))
{
time_t nickserv_expire = Config->GetModule(this)->Get<time_t>("expire");
time_t nickserv_expire = Config->GetModule(this)->Get<time_t>("expire", "21d");
if (!na->HasExt("NS_NO_EXPIRE") && nickserv_expire && !Anope::NoExpire && na->last_seen != Anope::CurTime)
info[_("Expires")] = Anope::strftime(na->last_seen + nickserv_expire, source.GetAccount());
}