diff options
author | Adam <Adam@anope.org> | 2013-02-14 20:58:01 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-02-14 20:58:01 -0500 |
commit | fc1d7ea89b5beed96022499fe7fa86bef7cf2aad (patch) | |
tree | 0208b9f5e153191742d15c51d6ca98737d8f7eb9 /modules/commands/os_dns.cpp | |
parent | 391f2822c8f6da7d6ffa8114817a8baf2aa265d5 (diff) |
Switch Destroy methods to delete
Diffstat (limited to 'modules/commands/os_dns.cpp')
-rw-r--r-- | modules/commands/os_dns.cpp | 6 |
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> ¶ms) @@ -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> ¶ms) |