From 94c20f30846a4b49fff8182fcdeb565806f60ff0 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Wed, 16 Apr 2025 02:52:31 +0100 Subject: Use duration strings when reporting the expiry period. --- modules/nickserv/nickserv.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/nickserv') diff --git a/modules/nickserv/nickserv.cpp b/modules/nickserv/nickserv.cpp index 36d32d236..11edb8b55 100644 --- a/modules/nickserv/nickserv.cpp +++ b/modules/nickserv/nickserv.cpp @@ -546,15 +546,15 @@ public: } time_t nickserv_expire = Config->GetModule(this).Get("expire", "1y"); - if (nickserv_expire >= 86400) + if (nickserv_expire) { source.Reply(" "); source.Reply(_( "Accounts that are not used anymore are subject to " "the automatic expiration, i.e. they will be deleted " - "after %lu days if not used." + "after %s if not used." ), - (unsigned long)nickserv_expire / 86400); + Anope::Duration(nickserv_expire, source.nc).c_str()); } } -- cgit