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)