summaryrefslogtreecommitdiff
path: root/modules/core/ms_main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/core/ms_main.cpp')
-rw-r--r--modules/core/ms_main.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/core/ms_main.cpp b/modules/core/ms_main.cpp
index 40cc6d6d5..39fc94b49 100644
--- a/modules/core/ms_main.cpp
+++ b/modules/core/ms_main.cpp
@@ -185,10 +185,9 @@ class MemoServCore : public Module
MyMemoServService mymemoserv;
public:
- MemoServCore(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator), mymemoserv(this)
+ MemoServCore(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, CORE), mymemoserv(this)
{
this->SetAuthor("Anope");
- this->SetType(CORE);
Implementation i[] = { I_OnNickIdentify, I_OnJoinChannel, I_OnUserAway, I_OnNickUpdate };
ModuleManager::Attach(i, this, 4);
@@ -210,7 +209,7 @@ class MemoServCore : 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);
}