summaryrefslogtreecommitdiff
path: root/modules/commands/os_dns.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-02-14 20:58:01 -0500
committerAdam <Adam@anope.org>2013-02-14 20:58:01 -0500
commitfc1d7ea89b5beed96022499fe7fa86bef7cf2aad (patch)
tree0208b9f5e153191742d15c51d6ca98737d8f7eb9 /modules/commands/os_dns.cpp
parent391f2822c8f6da7d6ffa8114817a8baf2aa265d5 (diff)
Switch Destroy methods to delete
Diffstat (limited to 'modules/commands/os_dns.cpp')
-rw-r--r--modules/commands/os_dns.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/commands/os_dns.cpp b/modules/commands/os_dns.cpp
index 42d6193b9..52a6995fc 100644
--- a/modules/commands/os_dns.cpp
+++ b/modules/commands/os_dns.cpp
@@ -312,7 +312,7 @@ class CommandOSDNS : public Command
}
source.Reply(_("Zone %s removed."), z->name.c_str());
- z->Destroy();
+ delete z;
}
void AddServer(CommandSource &source, const std::vector<Anope::string> &params)
@@ -370,7 +370,7 @@ class CommandOSDNS : public Command
if (!z)
{
source.Reply(_("Zone %s does not exist."), zone.c_str());
- s->Destroy();
+ delete s;
return;
}
@@ -426,7 +426,7 @@ class CommandOSDNS : public Command
Log(LOG_ADMIN, source, this) << "to delete server " << s->GetName();
source.Reply(_("Removed server %s."), s->GetName().c_str());
- s->Destroy();
+ delete s;
}
void AddIP(CommandSource &source, const std::vector<Anope::string> &params)