From 945b51b780fe8df0acabd692868ec5f8858dca09 Mon Sep 17 00:00:00 2001 From: "geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b" Date: Sat, 14 Jul 2007 08:10:22 +0000 Subject: 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 --- src/modules.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') 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); } } -- cgit