From 11a99c885a85fc7c8f05a5a49a99ae8c02dc2f92 Mon Sep 17 00:00:00 2001 From: "Robin Burchell w00t@inspircd.org" Date: Sat, 8 Nov 2008 00:37:16 +0000 Subject: [PATCH] Make the logging a bit less annoyingly insane. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1581 5417fbe8-f217-4b02-8779-1006273d7864 --- src/modules.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules.c b/src/modules.c index f4231c638..393dc38c5 100644 --- a/src/modules.c +++ b/src/modules.c @@ -217,7 +217,6 @@ void modules_core_init(int number, char **list) m = findModule(list[idx]); if (!m) { status = loadModule(list[idx], NULL); - alog("debug: status: [%d][%s]", status, ModuleGetErrStr(status)); if (status != MOD_ERR_OK) alog("ERROR: status: [%d][%s]", status, ModuleGetErrStr(status)); mod_current_module = NULL; @@ -612,7 +611,8 @@ int loadModule(const std::string &modname, User * u) if (findModule(modname.c_str()) != NULL) return MOD_ERR_EXISTS; - alog("trying to load [%s]", modname.c_str()); + if (debug) + alog("trying to load [%s]", modname.c_str()); /* Generate the filename for the temporary copy of the module */ strncpy(buf, MODULE_PATH, 4095); /* Get full path with module extension */