summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--language/anope.en_US.po6
-rw-r--r--modules/chanserv/chanserv.cpp7
-rw-r--r--modules/nickserv/nickserv.cpp6
3 files changed, 10 insertions, 9 deletions
diff --git a/language/anope.en_US.po b/language/anope.en_US.po
index 6944d16d1..80c4508d5 100644
--- a/language/anope.en_US.po
+++ b/language/anope.en_US.po
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Anope\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2025-04-16 02:19+0100\n"
+"POT-Creation-Date: 2025-04-16 02:51+0100\n"
"PO-Revision-Date: 2025-04-10 13:32+0100\n"
"Last-Translator: Sadie Powell <sadie@witchery.services>\n"
"Language-Team: English\n"
@@ -1283,7 +1283,7 @@ msgid "Accounts can not be registered right now. Please try again later."
msgstr ""
#, c-format
-msgid "Accounts that are not used anymore are subject to the automatic expiration, i.e. they will be deleted after %lu days if not used."
+msgid "Accounts that are not used anymore are subject to the automatic expiration, i.e. they will be deleted after %s if not used."
msgstr ""
msgid "Activate or deactivate debug mode"
@@ -3869,7 +3869,7 @@ msgid "None"
msgstr ""
#, c-format
-msgid "Note that any channel which is not used for %lu days (i.e. which no user on the channel's access list enters for that period of time) will be automatically dropped."
+msgid "Note that any channel which is not used for %s (i.e. which no user on the channel's access list enters for that period of time) will be automatically dropped."
msgstr ""
#, c-format
diff --git a/modules/chanserv/chanserv.cpp b/modules/chanserv/chanserv.cpp
index 38d2f0ef0..a79534d93 100644
--- a/modules/chanserv/chanserv.cpp
+++ b/modules/chanserv/chanserv.cpp
@@ -280,16 +280,17 @@ public:
{
if (!params.empty() || source.c || source.service != *ChanServ)
return;
+
time_t chanserv_expire = Config->GetModule(this).Get<time_t>("expire", "30d");
- if (chanserv_expire >= 86400)
+ if (chanserv_expire)
{
source.Reply(" ");
source.Reply(_(
- "Note that any channel which is not used for %lu days "
+ "Note that any channel which is not used for %s "
"(i.e. which no user on the channel's access list enters "
"for that period of time) will be automatically dropped."
),
- (unsigned long)chanserv_expire / 86400);
+ Anope::Duration(chanserv_expire, source.nc).c_str());
}
if (source.IsServicesOper())
{
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<time_t>("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());
}
}