From a40eaeb2a3ef06921d0e08e7ea7a0886d71d02c9 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sat, 22 Mar 2025 21:04:25 +0000 Subject: Use a plural form translation for the ns_maxemail error. --- modules/nickserv/ns_maxemail.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'modules/nickserv') 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; } -- cgit