From fc1d7ea89b5beed96022499fe7fa86bef7cf2aad Mon Sep 17 00:00:00 2001 From: Adam Date: Thu, 14 Feb 2013 20:58:01 -0500 Subject: Switch Destroy methods to delete --- modules/commands/os_akill.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/commands/os_akill.cpp') diff --git a/modules/commands/os_akill.cpp b/modules/commands/os_akill.cpp index 96734c059..bdf609b03 100644 --- a/modules/commands/os_akill.cpp +++ b/modules/commands/os_akill.cpp @@ -172,7 +172,7 @@ class CommandOSAKill : public Command { source.Reply(USERHOST_MASK_TOO_WIDE, mask.c_str()); Log(LOG_ADMIN, source, this) << "tried to akill " << percent << "% of the network (" << affected << " users)"; - x->Destroy(); + delete x; return; } @@ -180,7 +180,7 @@ class CommandOSAKill : public Command FOREACH_RESULT(I_OnAddXLine, OnAddXLine(source, x, akills)); if (MOD_RESULT == EVENT_STOP) { - x->Destroy(); + delete x; return; } -- cgit