diff options
author | geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b <geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2007-07-14 08:10:22 +0000 |
---|---|---|
committer | geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b <geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2007-07-14 08:10:22 +0000 |
commit | 945b51b780fe8df0acabd692868ec5f8858dca09 (patch) | |
tree | e1dc3d2d5f7feba995ddc63dbefbcf448faf400b /src/modules.c | |
parent | e87346649818cbe2290b186a0d6ef9636675de1b (diff) |
BUILD : 1.7.19 (1256) BUGS : NOTES : Moved the displaying of command infos on command add/remove to debug level 2 instead of 1
git-svn-id: svn://svn.anope.org/anope/trunk@1256 31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@975 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/modules.c')
-rw-r--r-- | src/modules.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules.c b/src/modules.c index 70d4621c5..b6b74eec1 100644 --- a/src/modules.c +++ b/src/modules.c @@ -1073,10 +1073,10 @@ int moduleAddCommand(CommandHash * cmdTable[], Command * c, int pos) } else c->service = sstrdup("Unknown"); - if (debug) + if (debug >= 2) displayCommandFromHash(cmdTable, c->name); status = addCommand(cmdTable, c, pos); - if (debug) + if (debug >= 2) displayCommandFromHash(cmdTable, c->name); if (status != MOD_ERR_OK) { alog("ERROR! [%d]", status); @@ -1109,11 +1109,11 @@ int moduleDelCommand(CommandHash * cmdTable[], char *name) for (cmd = c; cmd; cmd = cmd->next) { if (cmd->mod_name && stricmp(cmd->mod_name, mod_current_module->name) == 0) { - if (debug) { + if (debug >= 2) { displayCommandFromHash(cmdTable, name); } status = delCommand(cmdTable, cmd, mod_current_module->name); - if (debug) { + if (debug >= 2) { displayCommandFromHash(cmdTable, name); } } |