X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/2a64312fdc512ec4e591d8cffa0c7dddb6fa13f1..e421505e8c489d127364623d714435e166ae4e56:/src/ircd.c diff --git a/src/ircd.c b/src/ircd.c index 19d7aae..6a8a3d4 100644 --- a/src/ircd.c +++ b/src/ircd.c @@ -66,6 +66,7 @@ #include "serno.h" #include "sslproc.h" #include "chmode.h" +#include "privilege.h" /* /quote set variables */ struct SetOptions GlobalSetOptions; @@ -188,7 +189,7 @@ init_sys(void) if(maxconnections <= MAX_BUFFER) { fprintf(stderr, "ERROR: Shell FD limits are too low.\n"); - fprintf(stderr, "ERROR: ircd-ratbox reserves %d FDs, shell limits must be above this\n", MAX_BUFFER); + fprintf(stderr, "ERROR: charybdis reserves %d FDs, shell limits must be above this\n", MAX_BUFFER); exit(EXIT_FAILURE); } return; @@ -453,7 +454,7 @@ ircd_log_cb(const char *str) static void ircd_restart_cb(const char *str) { - inotice(L_MAIN, "libratbox has called the restart callback: %s", str); + inotice("libratbox has called the restart callback: %s", str); restart(str); } @@ -474,7 +475,7 @@ ircd_die_cb(const char *str) inotice("libratbox has called the die callback..aborting: %s", str); } else - inotice(L_MAIN, "libratbox has called the die callback..aborting"); + inotice("libratbox has called the die callback..aborting"); unlink(pidFileName); exit(EXIT_FAILURE); @@ -597,6 +598,7 @@ main(int argc, char *argv[]) if(printVersion) { printf("ircd: version %s(%s)\n", ircd_version, serno); + printf("ircd: %s\n", rb_lib_version()); exit(EXIT_SUCCESS); } @@ -625,6 +627,7 @@ main(int argc, char *argv[]) if(!server_state_foreground) make_daemon(); inotice("starting %s ...", ircd_version); + inotice("%s", rb_lib_version()); } /* Init the event subsystem */ @@ -662,6 +665,7 @@ main(int argc, char *argv[]) #endif init_auth(); /* Initialise the auth code */ init_resolver(); /* Needs to be setup before the io loop */ + privilegeset_set_new("default", "", 0); if (testing_conf) fprintf(stderr, "\nBeginning config test\n");