* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "modules.h"
+#ifndef WIN32
#include <dlfcn.h>
+#endif
/* 000-011 */ #include "main.h"
/* 012 */ #include "BanNode.h"
if(get_int_field(tmp)) {
modinfo = loadModule(modulelist[i]);
sprintf(tmp, "modules.%s.protected", modulelist[i]);
- if(!get_int_field(tmp))
+ if(get_int_field(tmp))
modinfo->state |= MODINFO_STATE_PROTECTED;
}
i++;
modinfo->startfunc = startfunc;
modinfo->loopfunc = loopfunc;
modinfo->stopfunc = stopfunc;
+ modinfo->state = 0;
modinfo->next = modules;
modules = modinfo;
return modinfo;