summaryrefslogtreecommitdiff
path: root/modules/commands/ms_ignore.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2012-01-24 18:28:37 -0500
committerAdam <Adam@anope.org>2012-01-24 18:28:37 -0500
commite88e37c59b45cc43b714d1d28719eb3c2ca9579a (patch)
tree0253ce6231d4772748508f234d382d98a6c8d01f /modules/commands/ms_ignore.cpp
parentf10f49d6fccd85d182b6467b3592dac408f43567 (diff)
Add some checks in ms_* to make sure memoserv really exists
Diffstat (limited to 'modules/commands/ms_ignore.cpp')
-rw-r--r--modules/commands/ms_ignore.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/commands/ms_ignore.cpp b/modules/commands/ms_ignore.cpp
index 2f2998d34..fd6d519ab 100644
--- a/modules/commands/ms_ignore.cpp
+++ b/modules/commands/ms_ignore.cpp
@@ -25,6 +25,9 @@ class CommandMSIgnore : public Command
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
{
+ if (!memoserv)
+ return;
+
User *u = source.u;
Anope::string channel = params[0];