From 89ac1c8723711aa313b7450f498dbcc201984d25 Mon Sep 17 00:00:00 2001 From: codemastr Date: Fri, 29 Jun 2001 15:02:54 +0000 Subject: [PATCH] fixed a module bug --- Changes | 1 + src/modules.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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");