[NeoStats-Devel] [Commits] r2839 - trunk/src
[email protected] Thu, 29 Sep 2005 14:37:05 +1000
| Newsgroups | gmane.comp.neostats.devel |
|---|---|
| Message-ID | <[email protected]> |
Author: Fish Date: Thu Sep 29 12:36:59 2005 New Revision: 2839 Modified: trunk/src/misc.c trunk/src/modules.c Log: Fix unload_extension call. Modified: trunk/src/misc.c ============================================================================== --- trunk/src/misc.c (original) +++ trunk/src/misc.c Thu Sep 29 12:36:59 2005 @@ -749,6 +749,6 @@ spanlen = strspn( mask, stringset ); if( spanlen == len ) return NS_FALSE; - return ; + return NS_TRUE; } Modified: trunk/src/modules.c ============================================================================== --- trunk/src/modules.c (original) +++ trunk/src/modules.c Thu Sep 29 12:36:59 2005 @@ -556,7 +556,8 @@ irc_chanalert( ns_botptr, _( "Unloading module %s" ), modname ); #ifdef USE_PERL /* unload any extensions first */ - unload_perlextension(mod_ptr); + if ((mod_ptr->pm) && (mod_ptr->pm->type = TYPE_EXTENSION)) + unload_perlextension(mod_ptr); #endif /* USE_PERL */ if( mod_ptr->info->flags & MODULE_FLAG_AUTH )