summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data/chanserv.example.conf4
-rw-r--r--modules/pseudoclients/chanserv.cpp6
2 files changed, 5 insertions, 5 deletions
diff --git a/data/chanserv.example.conf b/data/chanserv.example.conf
index 05b6055ba..bb8869575 100644
--- a/data/chanserv.example.conf
+++ b/data/chanserv.example.conf
@@ -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.
diff --git a/modules/pseudoclients/chanserv.cpp b/modules/pseudoclients/chanserv.cpp
index 034859d91..5acfe8e55 100644
--- a/modules/pseudoclients/chanserv.cpp
+++ b/modules/pseudoclients/chanserv.cpp
@@ -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());
}