diff options
author | Adam <Adam@anope.org> | 2010-10-02 00:07:39 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2010-10-02 00:07:39 -0400 |
commit | a62d824cb4266cdfbfbc81e142b22f1a2e7ed7be (patch) | |
tree | de976c91aeac6dc0be1cd2e46bed76fe60a352e4 /src/memoserv.cpp | |
parent | e3afb119b925513c103c661ffc3c75c7602005e1 (diff) |
Made MemoServ optional
Diffstat (limited to 'src/memoserv.cpp')
-rw-r--r-- | src/memoserv.cpp | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/src/memoserv.cpp b/src/memoserv.cpp index b1e32a673..f27db9742 100644 --- a/src/memoserv.cpp +++ b/src/memoserv.cpp @@ -12,29 +12,16 @@ #include "services.h" #include "modules.h" -/*************************************************************************/ -/* *INDENT-OFF* */ - static bool SendMemoMail(NickCore *nc, Memo *m); -/*************************************************************************/ - -void moduleAddMemoServCmds() -{ - ModuleManager::LoadModuleList(Config->MemoServCoreModules); -} - -/*************************************************************************/ -/*************************************************************************/ -/* *INDENT-ON* */ - /** * MemoServ initialization. * @return void */ void ms_init() { - moduleAddMemoServCmds(); + if (!Config->s_MemoServ.empty()) + ModuleManager::LoadModuleList(Config->MemoServCoreModules); } /*************************************************************************/ @@ -47,6 +34,9 @@ void ms_init() */ void check_memos(User *u) { + if (Config->s_MemoServ.empty()) + return; + if (!u) { Log() << "check_memos called with NULL values"; @@ -167,6 +157,9 @@ MemoInfo *getmemoinfo(const Anope::string &name, bool &ischan, bool &isforbid) */ void memo_send(User *u, const Anope::string &name, const Anope::string &text, int z) { + if (Config->s_MemoServ.empty()) + return; + bool ischan, isforbid; MemoInfo *mi; Anope::string source = u->Account()->display; |