summaryrefslogtreecommitdiff
path: root/modules/core/ms_ignore.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/core/ms_ignore.cpp')
-rw-r--r--modules/core/ms_ignore.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/modules/core/ms_ignore.cpp b/modules/core/ms_ignore.cpp
index fd1d09ebf..6747798d2 100644
--- a/modules/core/ms_ignore.cpp
+++ b/modules/core/ms_ignore.cpp
@@ -12,6 +12,7 @@
/*************************************************************************/
#include "module.h"
+#include "memoserv.h"
class CommandMSIgnore : public Command
{
@@ -37,7 +38,7 @@ class CommandMSIgnore : public Command
}
bool ischan, isforbid;
- MemoInfo *mi = getmemoinfo(channel, ischan, isforbid);
+ MemoInfo *mi = memoserv->GetMemoInfo(channel, ischan, isforbid);
if (!mi)
{
if (isforbid)
@@ -111,7 +112,10 @@ class MSIgnore : public Module
this->SetAuthor("Anope");
this->SetType(CORE);
- this->AddCommand(MemoServ, &commandmsignore);
+ if (!memoserv)
+ throw ModuleException("MemoServ is not loaded!");
+
+ this->AddCommand(memoserv->Bot(), &commandmsignore);
}
};