dump_database();
/* Replacement for local_shutdown */
- MODULE_ITER(m)
+ MODULE_ITER(m) {
MODULE_FUNC_NOARGS(handle, m->handle, "module_shutdown");
+ }
+
#ifdef RPMODE_SYS
rplog_shutdown();
if (Haven(player))
notify(player, T("Your HAVEN flag is set. You cannot receive pages."));
/* Replacement for local_connect */
- MODULE_ITER(m)
+ MODULE_ITER(m) {
MODULE_FUNC(handle, m->handle, "module_connect", player, isnew, num);
+ }
return 1;
}
set_flag_internal(player, "GOING_TWICE");
}
/* Replacement for local_disconnect */
- MODULE_ITER(m)
+ MODULE_ITER(m) {
MODULE_FUNC(handle, m->handle, "module_disconnect", player, num);
+ }
}
kill_info_slave();
#endif
/* Replacement for local_shutdown */
- MODULE_ITER(m)
+ MODULE_ITER(m) {
MODULE_FUNC_NOARGS(handle, m->handle, "module_shutdown");
+ }
end_all_logs();
#ifndef WIN32
{
}
current_state.exits++;
/* Replacement for local_data_create */
- MODULE_ITER(m)
+ MODULE_ITER(m) {
MODULE_FUNC(handle, m->handle, "module_data_create", new_exit);
+ }
return new_exit;
}
current_state.rooms++;
/* Replacement for local_data_create */
- MODULE_ITER(m)
+ MODULE_ITER(m) {
MODULE_FUNC(handle, m->handle, "module_data_create", room);
+ }
if (tport) {
/* We need to use the full command, because we need NO_TEL
notify_format(player, T("Created: Object %s."), unparse_dbref(thing));
current_state.things++;
/* Replacement for local_data_create */
- MODULE_ITER(m)
+ MODULE_ITER(m) {
MODULE_FUNC(handle, m->handle, "module_data_create", thing);
+ }
return thing;
}
moveto(clone, Location(player));
current_state.things++;
/* Replacement for local_data_clone */
- MODULE_ITER(m)
+ MODULE_ITER(m) {
MODULE_FUNC(handle, m->handle, "module_data_clone", clone,thing);
+ }
real_did_it(player, clone, NULL, NULL, NULL, NULL, "ACLONE", NOTHING,
global_eval_context.wenv, 0);
notify_format(player, T("Cloned: Room #%d."), clone);
current_state.rooms++;
/* local_data_clone replacement */
- MODULE_ITER(m)
+ MODULE_ITER(m) {
MODULE_FUNC(handle, m->handle, "module_data_clone", clone,thing);
+ }
real_did_it(player, clone, NULL, NULL, NULL, NULL, "ACLONE", NOTHING,
global_eval_context.wenv, 0);
return clone;
notify(player, T("Warning: @CLONE/PRESERVE on an exit with powers or warnings."));
notify_format(player, T("Cloned: Exit #%d."), clone);
/* Replacement for local_data_clone */
- MODULE_ITER(m)
+ MODULE_ITER(m) {
MODULE_FUNC(handle, m->handle, "module_data_clone", clone,thing);
+ }
return clone;
}
}
current_state.rooms++;
/* Replacement for local_data_create */
- MODULE_ITER(m)
+ MODULE_ITER(m) {
MODULE_FUNC(handle, m->handle, "module_data_create", room);
+ }
return new_room;
}
return false;
} else {
/* Replacement local_dump_database */
- MODULE_ITER(m)
+ MODULE_ITER(m) {
MODULE_FUNC_NOARGS(handle, m->handle, "module_dump_database");
+ }
#ifdef ALWAYS_PARANOID
paranoid_checkpt = db_top / 5;
/* Load all the config file stuff except restrict_* */
/* local_configs() replacement */
- MODULE_ITER(m)
+ MODULE_ITER(m) {
MODULE_FUNC_NOARGS(handler, m->handle, "module_configs");
+ }
conf_default_set();
config_file_startup(conf, 0);
#endif /* CRON */
/* Call Local Startup */
/* local_startup() replacement */
- MODULE_ITER(m)
+ MODULE_ITER(m) {
MODULE_FUNC_NOARGS(handle, m->handle, "module_startup");
+ }
/* everything else ok. Restart all objects. */