diff options
author | Adam <Adam@anope.org> | 2011-11-05 15:05:15 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-11-05 15:05:15 -0400 |
commit | 97b9055f92f21cd91af44a3d5dacce0024536cff (patch) | |
tree | 617a18ffcd1be8e3be5bf25d42fc407454f66505 /modules/commands/os_akill.cpp | |
parent | 5f0b9338dc58923bbbba8293bf9021e87ceb1976 (diff) |
Remove xlines from the IRCd aswell as from our list when the clear command is used, and fixed adding timed Zlines to inspircd
Diffstat (limited to 'modules/commands/os_akill.cpp')
-rw-r--r-- | modules/commands/os_akill.cpp | 8 |
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; |