summaryrefslogtreecommitdiff
path: root/modules/commands/os_dns.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2014-05-28 12:07:29 -0400
committerAdam <Adam@anope.org>2014-05-28 12:07:54 -0400
commitf29e1cf383529a1a29f02b0669d973f5ee0b7a66 (patch)
tree3c33db276dc9328235bbd572641521ed44458176 /modules/commands/os_dns.cpp
parent1253c70e0682fa1490c99c3d2869049a0e3fa2e0 (diff)
Move most of the core pseudoclient logic to modules
Diffstat (limited to 'modules/commands/os_dns.cpp')
-rw-r--r--modules/commands/os_dns.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/modules/commands/os_dns.cpp b/modules/commands/os_dns.cpp
index d76ad451f..0f47eb3e8 100644
--- a/modules/commands/os_dns.cpp
+++ b/modules/commands/os_dns.cpp
@@ -423,7 +423,7 @@ class CommandOSDNS : public Command
{
DNSServer *s = DNSServer::Find(params[1]);
const Anope::string &zone = params.size() > 2 ? params[2] : "";
-
+
if (!s)
{
source.Reply(_("Server %s does not exist."), params[1].c_str());
@@ -485,7 +485,7 @@ class CommandOSDNS : public Command
void AddIP(CommandSource &source, const std::vector<Anope::string> &params)
{
DNSServer *s = DNSServer::Find(params[1]);
-
+
if (!s)
{
source.Reply(_("Server %s does not exist."), params[1].c_str());
@@ -520,11 +520,11 @@ class CommandOSDNS : public Command
dnsmanager->Notify(*it);
}
}
-
+
void DelIP(CommandSource &source, const std::vector<Anope::string> &params)
{
DNSServer *s = DNSServer::Find(params[1]);
-
+
if (!s)
{
source.Reply(_("Server %s does not exist."), params[1].c_str());
@@ -563,7 +563,7 @@ class CommandOSDNS : public Command
void OnSet(CommandSource &source, const std::vector<Anope::string> &params)
{
DNSServer *s = DNSServer::Find(params[1]);
-
+
if (!s)
{
source.Reply(_("Server %s does not exist."), params[1].c_str());
@@ -596,7 +596,7 @@ class CommandOSDNS : public Command
void OnPool(CommandSource &source, const std::vector<Anope::string> &params)
{
DNSServer *s = DNSServer::Find(params[1]);
-
+
if (!s)
{
source.Reply(_("Server %s does not exist."), params[1].c_str());
@@ -631,7 +631,7 @@ class CommandOSDNS : public Command
void OnDepool(CommandSource &source, const std::vector<Anope::string> &params)
{
DNSServer *s = DNSServer::Find(params[1]);
-
+
if (!s)
{
source.Reply(_("Server %s does not exist."), params[1].c_str());