diff options
author | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-08 01:38:38 +0000 |
---|---|---|
committer | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-08 01:38:38 +0000 |
commit | 7bac547f555a5ec93a89a3433ae74152dbbc3e89 (patch) | |
tree | 16794f22813c6526c3b478ad53295de16eb4d427 /src | |
parent | 3dd5c8348692bb60c7626a0e7235fe41b5edc6ff (diff) |
Don't attempt to show module errors, these are now pretty much useless and replaced with ModuleException.. so.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1589 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r-- | src/modules.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/src/modules.c b/src/modules.c index 76852d581..0d964b155 100644 --- a/src/modules.c +++ b/src/modules.c @@ -195,8 +195,6 @@ void modules_init(void) m = findModule(ModulesAutoload[idx]); if (!m) { ret = loadModule(ModulesAutoload[idx], NULL); - if (ret != MOD_ERR_OK) - alog("ERROR: status: [%d][%s]", ret, ModuleGetErrStr(ret)); mod_current_module = NULL; mod_current_user = NULL; } @@ -217,8 +215,6 @@ void modules_core_init(int number, char **list) m = findModule(list[idx]); if (!m) { status = loadModule(list[idx], NULL); - if (status != MOD_ERR_OK) - alog("ERROR: status: [%d][%s]", status, ModuleGetErrStr(status)); mod_current_module = NULL; mod_current_user = NULL; } @@ -232,9 +228,7 @@ int encryption_module_init(void) { alog("Loading Encryption Module: [%s]", EncModule); ret = loadModule(EncModule, NULL); - if (ret != MOD_ERR_OK) - alog("ERROR: status: [%d][%s]", ret, ModuleGetErrStr(ret)); - else + if (ret == MOD_ERR_OK) findModule(EncModule)->SetType(ENCRYPTION); mod_current_module = NULL; return ret; @@ -273,10 +267,7 @@ int protocol_module_init(void) ret = -1; } } - else - { - alog("ERROR: status: [%d][%s]", ret, ModuleGetErrStr(ret)); - } + mod_current_module = NULL; return ret; } @@ -300,8 +291,6 @@ void modules_delayed_init(void) m = findModule(ModulesDelayedAutoload[idx]); if (!m) { ret = loadModule(ModulesDelayedAutoload[idx], NULL); - if (ret != MOD_ERR_OK) - alog("ERROR: status: [%d][%s]", ret, ModuleGetErrStr(ret)); mod_current_module = NULL; mod_current_user = NULL; } |