summaryrefslogtreecommitdiff
path: root/src/modules.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-04-22 05:21:38 +0200
committerAdam <Adam@anope.org>2013-04-26 16:59:29 -0500
commit8428bbb387d4b1195156f0ab5a676d17b69b8d5f (patch)
tree6a4391bc908dfc8bbf3f7879cbb464a36204520f /src/modules.cpp
parent0f928805dbd793d7c0f10da1135ab79ad169472f (diff)
Modularize DNS
The DNS modules are temporarily in commands/ so they're loaded automatically Thanks to Attila for helping with much of this.
Diffstat (limited to 'src/modules.cpp')
-rw-r--r--src/modules.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/modules.cpp b/src/modules.cpp
index e14e33811..c9118d1a7 100644
--- a/src/modules.cpp
+++ b/src/modules.cpp
@@ -29,7 +29,6 @@
#include "socket.h"
#include "socketengine.h"
#include "command_parse.h"
-#include "dns.h"
#include "exitcodes.h"
#ifndef _WIN32
@@ -387,9 +386,6 @@ void ModuleManager::DoSafeUnload(Module* mod)
dynamic_reference_base::reset_all();
- /* Tidy up any dangling resolvers */
- ServerInstance->Res->CleanResolvers(mod);
-
DetachAll(mod);
Modules.erase(modfind);
@@ -568,18 +564,6 @@ void InspIRCd::SendGlobalMode(const std::vector<std::string>& parameters, User *
this->PI->SendMode(parameters[0], Modes->GetLastParseParams(), Modes->GetLastParseTranslate());
}
-bool InspIRCd::AddResolver(Resolver* r, bool cached)
-{
- if (!cached)
- return this->Res->AddResolverClass(r);
- else
- {
- r->TriggerCachedResult();
- delete r;
- return true;
- }
-}
-
Module* ModuleManager::Find(const std::string &name)
{
std::map<std::string, Module*>::iterator modfind = Modules.find(name);