mirror of
https://github.com/anope/anope.git
synced 2026-07-03 00:43:12 +02:00
Add some checks in ms_* to make sure memoserv really exists
This commit is contained in:
@@ -25,6 +25,9 @@ class CommandMSCancel : public Command
|
||||
|
||||
void Execute(CommandSource &source, const std::vector<Anope::string> ¶ms)
|
||||
{
|
||||
if (!memoserv)
|
||||
return;
|
||||
|
||||
User *u = source.u;
|
||||
|
||||
const Anope::string &nname = params[0];
|
||||
|
||||
@@ -25,6 +25,9 @@ class CommandMSIgnore : public Command
|
||||
|
||||
void Execute(CommandSource &source, const std::vector<Anope::string> ¶ms)
|
||||
{
|
||||
if (!memoserv)
|
||||
return;
|
||||
|
||||
User *u = source.u;
|
||||
|
||||
Anope::string channel = params[0];
|
||||
|
||||
@@ -25,6 +25,9 @@ class CommandMSRSend : public Command
|
||||
|
||||
void Execute(CommandSource &source, const std::vector<Anope::string> ¶ms)
|
||||
{
|
||||
if (!memoserv)
|
||||
return;
|
||||
|
||||
User *u = source.u;
|
||||
|
||||
const Anope::string &nick = params[0];
|
||||
|
||||
@@ -25,6 +25,9 @@ class CommandMSSend : public Command
|
||||
|
||||
void Execute(CommandSource &source, const std::vector<Anope::string> ¶ms)
|
||||
{
|
||||
if (!memoserv)
|
||||
return;
|
||||
|
||||
const Anope::string &nick = params[0];
|
||||
const Anope::string &text = params[1];
|
||||
|
||||
|
||||
@@ -25,6 +25,9 @@ class CommandMSSendAll : public Command
|
||||
|
||||
void Execute(CommandSource &source, const std::vector<Anope::string> ¶ms)
|
||||
{
|
||||
if (!memoserv)
|
||||
return;
|
||||
|
||||
User *u = source.u;
|
||||
const Anope::string &text = params[0];
|
||||
|
||||
|
||||
@@ -25,6 +25,9 @@ class CommandMSStaff : public Command
|
||||
|
||||
void Execute(CommandSource &source, const std::vector<Anope::string> ¶ms)
|
||||
{
|
||||
if (!memoserv)
|
||||
return;
|
||||
|
||||
const Anope::string &text = params[0];
|
||||
|
||||
if (readonly)
|
||||
|
||||
Reference in New Issue
Block a user