Moved to new module init structure.
[citadel.git] / citadel / serv_notes.c
index 23a8d583230f7f44b71ce72a2ed85745bbf0bfa4..47e968b03bd22cfc8ba6b00947e2edda66a9742a 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 "serv_extensions.h"
 #include "room_ops.h"
 #include "user_ops.h"
 #include "policy.h"
@@ -43,6 +41,9 @@
 #include "msgbase.h"
 #include "tools.h"
 
+#include "ctdl_module.h"
+
+
 
 /*
  * If we are in a "notes" view room, and the client has sent an RFC822
@@ -102,7 +103,7 @@ int serv_notes_beforesave(struct CtdlMessage *msg)
 }
 
 
-char *serv_notes_init(void)
+CTDL_MODULE_INIT(notes)
 {
        CtdlRegisterMessageHook(serv_notes_beforesave, EVT_BEFORESAVE);