mirror of
https://github.com/anope/anope.git
synced 2026-07-03 08:33:12 +02:00
Switch Destroy methods to delete
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user