mirror of
https://github.com/anope/anope.git
synced 2026-07-04 01:23:12 +02:00
Also refuse to load memoserv modules if memoserv isn't loaded
This commit is contained in:
@@ -73,6 +73,8 @@ class MSCancel : public Module
|
||||
{
|
||||
this->SetAuthor("Anope");
|
||||
|
||||
if (!memoserv)
|
||||
throw ModuleException("No MemoServ!");
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -120,6 +120,8 @@ class MSIgnore : public Module
|
||||
{
|
||||
this->SetAuthor("Anope");
|
||||
|
||||
if (!memoserv)
|
||||
throw ModuleException("No MemoServ!");
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -99,9 +99,10 @@ class MSRSend : public Module
|
||||
{
|
||||
this->SetAuthor("Anope");
|
||||
|
||||
if (!Config->MSMemoReceipt)
|
||||
if (!memoserv)
|
||||
throw ModuleException("No MemoServ!");
|
||||
else if (!Config->MSMemoReceipt)
|
||||
throw ModuleException("Invalid value for memoreceipt");
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -66,6 +66,8 @@ class MSSend : public Module
|
||||
{
|
||||
this->SetAuthor("Anope");
|
||||
|
||||
if (!memoserv)
|
||||
throw ModuleException("No MemoServ!");
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -70,6 +70,8 @@ class MSSendAll : public Module
|
||||
{
|
||||
this->SetAuthor("Anope");
|
||||
|
||||
if (!memoserv)
|
||||
throw ModuleException("No MemoServ!");
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -67,6 +67,8 @@ class MSStaff : public Module
|
||||
{
|
||||
this->SetAuthor("Anope");
|
||||
|
||||
if (!memoserv)
|
||||
throw ModuleException("No MemoServ!");
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user