mirror of
https://github.com/anope/anope.git
synced 2026-06-29 14:56:37 +02:00
Add some missing serial updates in os_dns
This commit is contained in:
@@ -322,6 +322,12 @@ class CommandOSDNS : public Command
|
||||
s->zones.erase(z->name);
|
||||
}
|
||||
|
||||
if (dnsmanager)
|
||||
{
|
||||
dnsmanager->UpdateSerial();
|
||||
dnsmanager->Notify(z->name);
|
||||
}
|
||||
|
||||
source.Reply(_("Zone %s removed."), z->name.c_str());
|
||||
delete z;
|
||||
}
|
||||
@@ -357,6 +363,12 @@ class CommandOSDNS : public Command
|
||||
z->servers.insert(s->GetName());
|
||||
s->zones.insert(zone);
|
||||
|
||||
if (dnsmanager)
|
||||
{
|
||||
dnsmanager->UpdateSerial();
|
||||
dnsmanager->Notify(zone);
|
||||
}
|
||||
|
||||
Log(LOG_ADMIN, source, this) << "to add server " << s->GetName() << " to zone " << z->name;
|
||||
|
||||
source.Reply(_("Server %s added to zone %s."), s->GetName().c_str(), z->name.c_str());
|
||||
@@ -398,6 +410,12 @@ class CommandOSDNS : public Command
|
||||
|
||||
z->servers.insert(s->GetName());
|
||||
s->zones.insert(z->name);
|
||||
|
||||
if (dnsmanager)
|
||||
{
|
||||
dnsmanager->UpdateSerial();
|
||||
dnsmanager->Notify(z->name);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -430,6 +448,12 @@ class CommandOSDNS : public Command
|
||||
|
||||
Log(LOG_ADMIN, source, this) << "to remove server " << s->GetName() << " from zone " << z->name;
|
||||
|
||||
if (dnsmanager)
|
||||
{
|
||||
dnsmanager->UpdateSerial();
|
||||
dnsmanager->Notify(z->name);
|
||||
}
|
||||
|
||||
z->servers.erase(s->GetName());
|
||||
source.Reply(_("Removed server %s from zone %s."), s->GetName().c_str(), z->name.c_str());
|
||||
return;
|
||||
@@ -450,6 +474,9 @@ class CommandOSDNS : public Command
|
||||
if (Anope::ReadOnly)
|
||||
source.Reply(READ_ONLY_MODE);
|
||||
|
||||
if (dnsmanager)
|
||||
dnsmanager->UpdateSerial();
|
||||
|
||||
Log(LOG_ADMIN, source, this) << "to delete server " << s->GetName();
|
||||
source.Reply(_("Removed server %s."), s->GetName().c_str());
|
||||
delete s;
|
||||
|
||||
Reference in New Issue
Block a user