]> code.citadel.org Git - citadel.git/blobdiff - citadel/serv_netfilter.c
mk_module_init.sh now tests to see if echo supports -e and -E
[citadel.git] / citadel / serv_netfilter.c
index 9585ae524f9939f25e7fc07de1c996002c4e5ba6..31fced57ba0b4a543b82990ead58068a291e540d 100644 (file)
 #include <limits.h>
 #include "citadel.h"
 #include "server.h"
-#include "sysdep_decls.h"
 #include "citserver.h"
 #include "support.h"
 #include "config.h"
 #include "control.h"
-#include "serv_extensions.h"
 #include "room_ops.h"
 #include "user_ops.h"
 #include "policy.h"
 #include "serv_network.h"
 #include "tools.h"
 
+
+#include "ctdl_module.h"
+
+
 /*
  * This handler detects whether an incoming network message is from some
  * moron user who the site operator has elected to filter out.  If a match
@@ -103,8 +105,10 @@ int filter_the_idiots(struct CtdlMessage *msg, char *target_room) {
 }
 
 
-char *serv_netfilter_init(void)
+CTDL_MODULE_INIT(netfilter)
 {
        CtdlRegisterNetprocHook(filter_the_idiots);
+
+       /* return our Subversion id for the Log */
        return "$Id$";
 }