From e88e37c59b45cc43b714d1d28719eb3c2ca9579a Mon Sep 17 00:00:00 2001 From: Adam Date: Tue, 24 Jan 2012 18:28:37 -0500 Subject: Add some checks in ms_* to make sure memoserv really exists --- modules/commands/ms_staff.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'modules/commands/ms_staff.cpp') diff --git a/modules/commands/ms_staff.cpp b/modules/commands/ms_staff.cpp index 8313d0ab5..524190bb4 100644 --- a/modules/commands/ms_staff.cpp +++ b/modules/commands/ms_staff.cpp @@ -25,6 +25,9 @@ class CommandMSStaff : public Command void Execute(CommandSource &source, const std::vector ¶ms) { + if (!memoserv) + return; + const Anope::string &text = params[0]; if (readonly) -- cgit