Added a comment about how to proceed with modules stuff.
#include "control.h"
#include "tools.h"
#include "euidindex.h"
-#include "serv_network.h" /* Needed for destroy_network_queue_room called from master_cleanup */
+/*#include "serv_network.h"*/ /* Needed for destroy_network_queue_room called from master_cleanup */
#ifndef HAVE_SNPRINTF
#include "snprintf.h"
close_databases();
/* flush the networker stuff */
- destroy_network_queue_room();
+/* destroy_network_queue_room();*/
/* Do system-dependent stuff */
sysdep_master_cleanup();
cdb_rewind(CDB_USETABLE);
while(cdbut = cdb_next_item(CDB_USETABLE), cdbut != NULL) {
+ /*
+ * TODODRW: change this to create a new function time_t cdb_get_timestamp( struct cdbdata *)
+ * this will release this file from the serv_network.h
+ * Maybe it could be a macro that extracts and casts the reult
+ */
memcpy(&ut, cdbut->ptr,
((cdbut->len > sizeof(struct UseTable)) ?
sizeof(struct UseTable) : cdbut->len));
CtdlRegisterProtoHook(cmd_nsyn, "NSYN", "Synchronize room to node");
CtdlRegisterSessionHook(network_do_queue, EVT_TIMER);
CtdlRegisterRoomHook(network_room_handler);
+ CtdlRegisterCleanupHook(destroy_network_queue_room);
+
/* return our Subversion id for the Log */
return "$Id$";