1
0
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:
Adam
2012-01-26 17:04:59 -05:00
parent 0f909273e1
commit d09a30295b
6 changed files with 13 additions and 2 deletions
+2
View File
@@ -73,6 +73,8 @@ class MSCancel : public Module
{
this->SetAuthor("Anope");
if (!memoserv)
throw ModuleException("No MemoServ!");
}
};
+2
View File
@@ -120,6 +120,8 @@ class MSIgnore : public Module
{
this->SetAuthor("Anope");
if (!memoserv)
throw ModuleException("No MemoServ!");
}
};
+3 -2
View File
@@ -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");
}
};
+2
View File
@@ -66,6 +66,8 @@ class MSSend : public Module
{
this->SetAuthor("Anope");
if (!memoserv)
throw ModuleException("No MemoServ!");
}
};
+2
View File
@@ -70,6 +70,8 @@ class MSSendAll : public Module
{
this->SetAuthor("Anope");
if (!memoserv)
throw ModuleException("No MemoServ!");
}
};
+2
View File
@@ -67,6 +67,8 @@ class MSStaff : public Module
{
this->SetAuthor("Anope");
if (!memoserv)
throw ModuleException("No MemoServ!");
}
};