summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--language/anope.en_US.po12
-rw-r--r--modules/nickserv/ns_maxemail.cpp6
2 files changed, 6 insertions, 12 deletions
diff --git a/language/anope.en_US.po b/language/anope.en_US.po
index f10c51ee6..438516824 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-03-22 08:57+0000\n"
+"POT-Creation-Date: 2025-03-22 21:04+0000\n"
"PO-Revision-Date: 2025-03-08 13:33+0000\n"
"Last-Translator: Sadie Powell <sadie@witchery.services>\n"
"Language-Team: English\n"
@@ -6061,12 +6061,10 @@ msgid ""
msgstr ""
#, c-format
-msgid "The email address %s has reached its usage limit of %d users."
-msgstr ""
-
-#, c-format
-msgid "The email address %s has reached its usage limit of 1 user."
-msgstr ""
+msgid "The email address %s has reached its usage limit of %u user."
+msgid_plural "The email address %s has reached its usage limit of %u users."
+msgstr[0] ""
+msgstr[1] ""
#, c-format
msgid "The email address of %s will now be hidden from %s INFO displays."
diff --git a/modules/nickserv/ns_maxemail.cpp b/modules/nickserv/ns_maxemail.cpp
index 89746c2fa..4b28b84af 100644
--- a/modules/nickserv/ns_maxemail.cpp
+++ b/modules/nickserv/ns_maxemail.cpp
@@ -45,11 +45,7 @@ class NSMaxEmail final
if (this->CountEmail(email, ignoreself ? source.GetAccount() : NULL) < NSEmailMax)
return false;
- if (NSEmailMax == 1)
- source.Reply(_("The email address \002%s\002 has reached its usage limit of 1 user."), email.c_str());
- else
- source.Reply(_("The email address \002%s\002 has reached its usage limit of %d users."), email.c_str(), NSEmailMax);
-
+ source.Reply(NSEmailMax, N_("The email address \002%s\002 has reached its usage limit of %u user.", "The email address \002%s\002 has reached its usage limit of %u users."), email.c_str());
return true;
}