autoexec.c
ds2.1.1/lib/secure/daemon/autoexec.c · 441 B
From the archive ds2.1.1.zip
Download the archive « Back to the archive contents
#include <lib.h>
#include <config.h>
inherit LIB_DAEMON;
int hasrun = 0;
static void eventRun() {
load_object("/secure/cmds/creators/update")->cmd("-r /lib/creator");
if(RESET_INTERMUD){
rm("/save/intermud.o");
update("/daemon/intermud");
}
load_object("/secure/cmds/creators/dsversion")->cmd();
}
static void create() {
daemon::create();
if(hasrun) return;
call_out((: eventRun :), 10);
hasrun = 1;
}