#include "class.h"
#include "client.h"
#include "crule.h"
+#include "destruct_event.h"
#include "hash.h"
#include "ircd_alloc.h"
#include "ircd_events.h"
static struct Timer connect_timer; /* timer structure for try_connections() */
static struct Timer ping_timer; /* timer structure for check_pings() */
+static struct Timer destruct_event_timer; /* timer structure for exec_expired_destruct_events() */
static struct Daemon thisServer = { 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0 };
":Your client may not be compatible with this server.");
send_reply(cptr, SND_EXPLICIT | ERR_BADPING,
":Compatible clients are available at "
- "ftp://ftp.undernet.org/pub/irc/clients");
+ URL_CLIENTS);
}
exit_client_msg(cptr,cptr,&me, "Ping Timeout");
continue;
fprintf(stderr,
"Check on %cPATH (%s) failed: %s\n"
- "Please create file and/or rerun `make config' and "
- "recompile to correct this.\n",
- which, path, strerror(errno));
+ "Please create this file and/or rerun `configure' "
+ "using --with-%cpath and recompile to correct this.\n",
+ which, path, strerror(errno), which);
return 0;
}
if (!check_file_access(SPATH, 'S', X_OK) ||
!check_file_access(configfile, 'C', R_OK))
return 4;
-
-#ifdef DEBUGMODE
- if (!check_file_access(LPATH, 'L', W_OK))
- return 5;
-#endif
debug_init(thisServer.bootopt & BOOT_TTY);
daemon_init(thisServer.bootopt & BOOT_TTY);
uping_init();
IPcheck_init();
- timer_add(&connect_timer, try_connections, 0, TT_RELATIVE, 1);
- timer_add(&ping_timer, check_pings, 0, TT_RELATIVE, 1);
+ timer_add(timer_init(&connect_timer), try_connections, 0, TT_RELATIVE, 1);
+ timer_add(timer_init(&ping_timer), check_pings, 0, TT_RELATIVE, 1);
+ timer_add(timer_init(&destruct_event_timer), exec_expired_destruct_events, 0, TT_PERIODIC, 60);
CurrentTime = time(NULL);