1
0
mirror of https://github.com/anope/anope.git synced 2026-06-12 19:14:47 +02:00

Increase the default channel expiry to 30 days.

This commit is contained in:
Sadie Powell
2021-10-17 19:46:05 +01:00
parent b7da27ad3a
commit 27cff11e31
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -108,9 +108,9 @@ module
* The length of time before a channel registration expires.
*
* This directive is optional, but recommended.
* If not set, the default is 14 days.
* If not set, the default is 30 days.
*/
expire = 14d
expire = 30d
/*
* The maximum number of entries on a channel's access list.
+3 -3
View File
@@ -267,7 +267,7 @@ class ChanServCore : public Module, public ChanServService
{
if (!params.empty() || source.c || source.service != *ChanServ)
return;
time_t chanserv_expire = Config->GetModule(this)->Get<time_t>("expire", "14d");
time_t chanserv_expire = Config->GetModule(this)->Get<time_t>("expire", "30d");
if (chanserv_expire >= 86400)
source.Reply(_(" \n"
"Note that any channel which is not used for %d days\n"
@@ -332,7 +332,7 @@ class ChanServCore : public Module, public ChanServService
void OnExpireTick() anope_override
{
time_t chanserv_expire = Config->GetModule(this)->Get<time_t>("expire", "14d");
time_t chanserv_expire = Config->GetModule(this)->Get<time_t>("expire", "30d");
if (!chanserv_expire || Anope::NoExpire || Anope::ReadOnly)
return;
@@ -460,7 +460,7 @@ class ChanServCore : public Module, public ChanServService
if (!show_all)
return;
time_t chanserv_expire = Config->GetModule(this)->Get<time_t>("expire", "14d");
time_t chanserv_expire = Config->GetModule(this)->Get<time_t>("expire", "30d");
if (!ci->HasExt("CS_NO_EXPIRE") && chanserv_expire && !Anope::NoExpire && ci->last_used != Anope::CurTime)
info[_("Expires")] = Anope::strftime(ci->last_used + chanserv_expire, source.GetAccount());
}