summaryrefslogtreecommitdiff
path: root/src/modules.c
diff options
context:
space:
mode:
authorRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-11-08 00:37:16 +0000
committerRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-11-08 00:37:16 +0000
commit11a99c885a85fc7c8f05a5a49a99ae8c02dc2f92 (patch)
tree9ed73933ce8fabb4d8e5d567d7d608780d46893a /src/modules.c
parentd18d3f094cddedc6e6363f616eedb909eb02016a (diff)
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
Diffstat (limited to 'src/modules.c')
-rw-r--r--src/modules.c4
1 files 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 */