From f9e4ca4d06d0b92333b0b96fe73a17762cabef5e Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 1 Oct 2024 11:31:50 +0100 Subject: Raise the default nickname expiry time to one year. --- data/nickserv.example.conf | 4 ++-- modules/nickserv/nickserv.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/data/nickserv.example.conf b/data/nickserv.example.conf index 8d24cde57..905909f79 100644 --- a/data/nickserv.example.conf +++ b/data/nickserv.example.conf @@ -124,9 +124,9 @@ module /* * The length of time before a nick's registration expires. * - * This directive is optional, but recommended. If not set, the default is 90 days. + * This directive is optional, but recommended. If not set, the default is one year. */ - expire = 90d + expire = 1y /* * Prevents the use of the ACCESS and CERT (excluding their LIST subcommand), DROP, FORBID, SUSPEND diff --git a/modules/nickserv/nickserv.cpp b/modules/nickserv/nickserv.cpp index fc02ff50d..6fce83aa6 100644 --- a/modules/nickserv/nickserv.cpp +++ b/modules/nickserv/nickserv.cpp @@ -486,7 +486,7 @@ public: "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("expire", "90d"); + time_t nickserv_expire = Config->GetModule(this)->Get("expire", "1y"); if (nickserv_expire >= 86400) source.Reply(_(" \n" "Accounts that are not used anymore are subject to\n" @@ -554,7 +554,7 @@ public: { if (!na->nc->HasExt("UNCONFIRMED")) { - time_t nickserv_expire = Config->GetModule(this)->Get("expire", "90d"); + time_t nickserv_expire = Config->GetModule(this)->Get("expire", "1y"); if (!na->HasExt("NS_NO_EXPIRE") && nickserv_expire && !Anope::NoExpire && (source.HasPriv("nickserv/auspex") || na->last_seen != Anope::CurTime)) info[_("Expires")] = Anope::strftime(na->last_seen + nickserv_expire, source.GetAccount()); } -- cgit