summaryrefslogtreecommitdiff
path: root/modules/chanserv/cs_access.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2025-04-23 01:54:57 +0100
committerSadie Powell <sadie@witchery.services>2025-04-23 01:57:02 +0100
commitbbb65ddc33c6d1bf1f52a41619e135b9ea59c8b2 (patch)
tree51603b95236c017ecbfa4cb71080e409a10bf3dc /modules/chanserv/cs_access.cpp
parent508bbe11e681454efa562d30c605f18e141f1d3b (diff)
When deleting a single list item show the deleted item not a count.
Closes #487.
Diffstat (limited to 'modules/chanserv/cs_access.cpp')
-rw-r--r--modules/chanserv/cs_access.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/chanserv/cs_access.cpp b/modules/chanserv/cs_access.cpp
index 43082ee02..a082b131c 100644
--- a/modules/chanserv/cs_access.cpp
+++ b/modules/chanserv/cs_access.cpp
@@ -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());
}
}