From 48c02f74a9e89a429b4bf084e874f5f7aaae50eb Mon Sep 17 00:00:00 2001 From: stskeeps Date: Sun, 22 Apr 2001 08:38:39 +0000 Subject: [PATCH] +- Fixed minor problem with mod_load code --- Changes | 1 + src/modules.c | 6 +----- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/Changes b/Changes index 94345ce34..bc6bafd8a 100644 --- a/Changes +++ b/Changes @@ -441,3 +441,4 @@ - Made IP Mismatches getting sent to UMODE_JUNK instead - Added method mod_load in dummy example and made it work. mod_load() is executed when server is ready +- Fixed minor problem with mod_load code diff --git a/src/modules.c b/src/modules.c index 165562a3f..30a8baff1 100644 --- a/src/modules.c +++ b/src/modules.c @@ -131,12 +131,8 @@ int load_module(char *module) if (!mod_unload) { mod_unload = irc_dlsym(Mod, "_mod_load"); - if (!mod_unload) - { - return -1; - } } - else + if (mod_unload) { /* if ircd is booted, load it */ if (loop.ircd_booted)