summaryrefslogtreecommitdiff
path: root/modules/commands/ms_set.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/commands/ms_set.cpp')
-rw-r--r--modules/commands/ms_set.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/commands/ms_set.cpp b/modules/commands/ms_set.cpp
index d1edaecca..9bf63b15d 100644
--- a/modules/commands/ms_set.cpp
+++ b/modules/commands/ms_set.cpp
@@ -9,8 +9,6 @@
* Based on the original code of Services by Andy Church.
*/
-/*************************************************************************/
-
#include "module.h"
class CommandMSSet : public Command
@@ -20,6 +18,10 @@ class CommandMSSet : public Command
{
const Anope::string &param = params[1];
NickCore *nc = source.nc;
+ BotInfo *MemoServ = Config->GetClient("MemoServ");
+
+ if (!MemoServ)
+ return;
if (param.equals_ci("ON"))
{