Here it is, the new thread interface.
[citadel.git] / citadel / modules / netfilter / serv_netfilter.c
index 09fe8c0f990ab9d33b38c8baded797d78018c4da..026df8ffcca465983e3fad3a8ea460583b6f6ef4 100644 (file)
@@ -107,8 +107,11 @@ int filter_the_idiots(struct CtdlMessage *msg, char *target_room) {
 
 CTDL_MODULE_INIT(netfilter)
 {
-       CtdlRegisterNetprocHook(filter_the_idiots);
-
+       if (!threading)
+       {
+               CtdlRegisterNetprocHook(filter_the_idiots);
+       }
+       
        /* return our Subversion id for the Log */
        return "$Id$";
 }