[ratbox3 svn r26284 by androsyn] spew the libratbox version info on -version and at startup

This commit is contained in:
Valeriy Yatsko 2008-12-22 12:58:33 +03:00
parent db0b158ab9
commit d2b6b9f308

View file

@ -157,6 +157,7 @@ print_startup(int pid)
inotice("now running in %s mode from %s as pid %d ...", inotice("now running in %s mode from %s as pid %d ...",
!server_state_foreground ? "background" : "foreground", !server_state_foreground ? "background" : "foreground",
ConfigFileEntry.dpath, pid); ConfigFileEntry.dpath, pid);
inotice("%s", rb_lib_version());
/* let the parent process know the initialization was successful /* let the parent process know the initialization was successful
* -- jilles */ * -- jilles */
@ -598,6 +599,7 @@ main(int argc, char *argv[])
if(printVersion) if(printVersion)
{ {
printf("ircd: version %s(%s)\n", ircd_version, serno); printf("ircd: version %s(%s)\n", ircd_version, serno);
printf("ircd: %s\n", rb_lib_version());
exit(EXIT_SUCCESS); exit(EXIT_SUCCESS);
} }