#include <limits.h>
#include "citadel.h"
#include "server.h"
-#include "serv_extensions.h"
#include "serv_chat.h"
-#include "sysdep_decls.h"
#include "citserver.h"
#include "support.h"
#include "config.h"
#include "snprintf.h"
#endif
+
+#include "ctdl_module.h"
+
+
+
struct ChatLine *ChatQueue = NULL;
int ChatLastMsg = 0;
*/
struct savelist *sl = NULL; /* list of rooms to save this page */
struct savelist *sptr;
- struct CtdlMessage *logmsg;
+ struct CtdlMessage *logmsg = NULL;
long msgnum;
if (strlen(x_msg) > 0) {
-char *serv_chat_init(void)
+CTDL_MODULE_INIT(chat)
{
CtdlRegisterProtoHook(cmd_chat, "CHAT", "Begin real-time chat");
CtdlRegisterProtoHook(cmd_pexp, "PEXP", "Poll for instant messages");
CtdlRegisterSessionHook(cmd_gexp_async, EVT_ASYNC);
CtdlRegisterSessionHook(delete_instant_messages, EVT_STOP);
CtdlRegisterXmsgHook(send_instant_message, XMSG_PRI_LOCAL);
+
+ /* return our Subversion id for the Log */
return "$Id$";
}