* shrinked the rest of these shutdown stuff into the module-handler.
[citadel.git] / webcit / paging.c
index 7f81049d4781dc99ec19369f92a61eee0ba1427c..d44c816cb2327d4101acc869afb87b93c8583985 100644 (file)
@@ -527,3 +527,12 @@ InitModule_PAGING
        WebcitAddUrlHandler(HKEY("chat_send"), chat_send, 0);
        WebcitAddUrlHandler(HKEY("ajax_send_instant_message"), ajax_send_instant_message, AJAX);
 }
+
+
+void 
+SessionDestroyModule_CHAT
+(wcsession *sess)
+{
+       if (sess->chat_sock > 0)
+               close(sess->chat_sock);
+}