summaryrefslogtreecommitdiff
path: root/modules/commands/os_akill.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/commands/os_akill.cpp')
-rw-r--r--modules/commands/os_akill.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/commands/os_akill.cpp b/modules/commands/os_akill.cpp
index 3b82fb5fb..ea8b2e40c 100644
--- a/modules/commands/os_akill.cpp
+++ b/modules/commands/os_akill.cpp
@@ -379,7 +379,13 @@ class CommandOSAKill : public Command
{
User *u = source.u;
FOREACH_MOD(I_OnDelXLine, OnDelXLine(u, NULL, akills));
- akills->Clear();
+
+ for (unsigned i = akills->GetCount(); i > 0; --i)
+ {
+ XLine *x = akills->GetEntry(i - 1);
+ akills->DelXLine(x);
+ }
+
source.Reply(_("The AKILL list has been cleared."));
return;