diff options
author | Adam <Adam@anope.org> | 2012-04-23 05:08:26 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2012-04-23 05:08:26 -0400 |
commit | 573e49a7ead331219eb6f0d3ca9cf83e793a5c9c (patch) | |
tree | e145e04fa3d041cf92ce46da4ac790b63231059c /modules/commands/os_akill.cpp | |
parent | 63c639e108a00d7dbb0d7ac9891684fc83a3b207 (diff) |
Reworked live SQL support yet again
Diffstat (limited to 'modules/commands/os_akill.cpp')
-rw-r--r-- | modules/commands/os_akill.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/commands/os_akill.cpp b/modules/commands/os_akill.cpp index f59c26e1f..dec9b9ae9 100644 --- a/modules/commands/os_akill.cpp +++ b/modules/commands/os_akill.cpp @@ -173,7 +173,7 @@ class CommandOSAKill : public Command { source.Reply(USERHOST_MASK_TOO_WIDE, mask.c_str()); Log(LOG_ADMIN, u, this) << "tried to akill " << percent << "% of the network (" << affected << " users)"; - delete x; + x->destroy(); return; } @@ -181,7 +181,7 @@ class CommandOSAKill : public Command FOREACH_RESULT(I_OnAddXLine, OnAddXLine(u, x, akills)); if (MOD_RESULT == EVENT_STOP) { - delete x; + x->destroy(); return; } @@ -264,7 +264,7 @@ class CommandOSAKill : public Command if (!number) return; - XLine *x = akills->GetEntry(number - 1); + const XLine *x = akills->GetEntry(number - 1); if (!x) return; @@ -286,7 +286,7 @@ class CommandOSAKill : public Command { for (unsigned i = 0, end = akills->GetCount(); i < end; ++i) { - XLine *x = akills->GetEntry(i); + const XLine *x = akills->GetEntry(i); if (mask.empty() || mask.equals_ci(x->Mask) || mask == x->UID || Anope::Match(x->Mask, mask, false, true)) { |