diff options
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; |