/*
* ngIRCd -- The Next Generation IRC Daemon
- * Copyright (c)2001-2019 Alexander Barton (alex@barton.de) and Contributors.
+ * Copyright (c)2001-2022 Alexander Barton (alex@barton.de) and Contributors.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* Please read the file COPYING, README and AUTHORS for more information.
*/
+#define GLOBAL_INIT
#include "portab.h"
/**
main(int argc, const char *argv[])
{
bool ok, configtest = false;
- bool NGIRCd_NoDaemon = false;
+ bool NGIRCd_NoDaemon = false, NGIRCd_NoSyslog = false;
int i;
size_t n;
}
if (strcmp(argv[i], "--nodaemon") == 0) {
NGIRCd_NoDaemon = true;
+ NGIRCd_NoSyslog = true;
ok = true;
}
if (strcmp(argv[i], "--passive") == 0) {
if (argv[i][n] == 'n') {
NGIRCd_NoDaemon = true;
+ NGIRCd_NoSyslog = true;
ok = true;
}
if (argv[i][n] == 'p') {
NGIRCd_SignalRestart = false;
NGIRCd_SignalQuit = false;
- Log_Init(!NGIRCd_NoDaemon);
+ Log_Init(!NGIRCd_NoSyslog);
Random_Init();
Conf_Init();
Log_ReInit();
Show_Version( void )
{
puts( NGIRCd_Version );
- puts( "Copyright (c)2001-2019 Alexander Barton (<alex@barton.de>) and Contributors." );
+ puts( "Copyright (c)2001-2022 Alexander Barton (<alex@barton.de>) and Contributors." );
puts( "Homepage: <http://ngircd.barton.de/>\n" );
puts( "This is free software; see the source for copying conditions. There is NO" );
puts( "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." );