1
0
mirror of https://github.com/anope/anope.git synced 2026-07-07 01:03:13 +02:00

Fixed os_dns not readding connected servers if configured

This commit is contained in:
Adam
2013-01-03 13:39:50 -05:00
parent 23e303aaa2
commit 6ccf0a3428
+11 -4
View File
@@ -116,13 +116,20 @@ class DNSServer : public Serializable
void SetLimit(unsigned l) { limit = l; }
bool Pooled() const { return pooled; }
void Pool(bool p) { pooled = p; }
void Pool(bool p)
{
if (!p)
this->SetActive(p);
pooled = p;
}
bool Active() const { return pooled && active; }
void SetActive(bool p)
{
this->Pool(p);
if (p)
this->Pool(p);
active = p;
if (dnsmanager)
dnsmanager->UpdateSerial();
}
@@ -485,7 +492,7 @@ class CommandOSDNS : public Command
if (s->GetIPs().empty())
{
s->repool = 0;
s->SetActive(false);
s->Pool(false);
}
if (s->Active() && dnsmanager)
@@ -574,7 +581,7 @@ class CommandOSDNS : public Command
return;
}
s->SetActive(false);
s->Pool(false);
source.Reply(_("Depooled %s."), s->GetName().c_str());
Log(LOG_ADMIN, source, this) << "to depool " << s->GetName();