summaryrefslogtreecommitdiff
path: root/modules/core/cs_main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/core/cs_main.cpp')
-rw-r--r--modules/core/cs_main.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/core/cs_main.cpp b/modules/core/cs_main.cpp
index 772c626d2..802528ee8 100644
--- a/modules/core/cs_main.cpp
+++ b/modules/core/cs_main.cpp
@@ -151,10 +151,9 @@ class ChanServCore : public Module
ExpireCallback expires;
public:
- ChanServCore(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator), mychanserv(this), expires(this)
+ ChanServCore(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, CORE), mychanserv(this), expires(this)
{
this->SetAuthor("Anope");
- this->SetType(CORE);
ModuleManager::RegisterService(&this->mychanserv);
@@ -176,7 +175,7 @@ class ChanServCore : public Module
Anope::string module;
while (coreModules.GetToken(module))
{
- Module *m = FindModule(module);
+ Module *m = ModuleManager::FindModule(module);
if (m != NULL)
ModuleManager::UnloadModule(m, NULL);
}