summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2014-02-21 20:50:23 -0500
committerAdam <Adam@anope.org>2014-02-21 20:50:23 -0500
commite2bd08fbff7182042658aae49189fcc458746649 (patch)
treeb3125ee9a54fe0eff67a52c1073150a408018133
parent20479340603eeedc02f15b1cf0a2ddaa5dfc25dd (diff)
Add some missing serial updates in os_dns
-rw-r--r--modules/commands/os_dns.cpp27
1 files changed, 27 insertions, 0 deletions
diff --git a/modules/commands/os_dns.cpp b/modules/commands/os_dns.cpp
index 3b6372b19..6a930980f 100644
--- a/modules/commands/os_dns.cpp
+++ b/modules/commands/os_dns.cpp
@@ -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;