diff --git a/Changes b/Changes index d829ed541..5888699fd 100644 --- a/Changes +++ b/Changes @@ -626,3 +626,4 @@ seen. gmtime warning still there - Made version.c depend on ../Changes - Made the ircd call mod_unload when it shuts down - Made use of the new module_load parameter in mod_init, and made commands.so use mod_load +- Fixed a module bug where loading == unloading diff --git a/src/modules.c b/src/modules.c index 1a33a79f0..230eef9bb 100644 --- a/src/modules.c +++ b/src/modules.c @@ -178,7 +178,7 @@ int load_module(char *module, int module_load) mod_header->dll = Mod; mod_header->unload = mod_unload; - mod_unload = irc_dlsym(Mod, "mod_load"); + mod_load = irc_dlsym(Mod, "mod_load"); if (!mod_load) { mod_load = irc_dlsym(Mod, "_mod_load");