1
0
mirror of https://github.com/anope/anope.git synced 2026-07-04 09:43:13 +02:00

When deleting a single list item show the deleted item not a count.

Closes #487.
This commit is contained in:
Sadie Powell
2025-04-23 01:54:57 +01:00
parent 508bbe11e6
commit bbb65ddc33
8 changed files with 122 additions and 27 deletions
+5 -1
View File
@@ -284,7 +284,11 @@ class CommandCSAccess final
else
{
Log(override ? LOG_OVERRIDE : LOG_COMMAND, source, c, ci) << "to delete " << Nicks;
source.Reply(deleted, N_("Deleted %d entry from %s access list.", "Deleted %d entries from %s access list."), deleted, ci->name.c_str());
if (deleted == 1)
source.Reply(_("Deleted %s from %s access list."), Nicks.c_str(), ci->name.c_str());
else
source.Reply(deleted, N_("Deleted %d entry from %s access list.", "Deleted %d entries from %s access list."), deleted, ci->name.c_str());
}
}