/*
* ngIRCd -- The Next Generation IRC Daemon
- * Copyright (c)2001-2010 Alexander Barton (alex@barton.de).
+ * Copyright (c)2001-2011 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.
*/
-
#include "portab.h"
/**
#include "io.h"
#include "irc.h"
-#ifdef ZEROCONF
-#include "rendezvous.h"
-#endif
-
#include "exp.h"
#include "ngircd.h"
static bool NGIRCd_Init PARAMS(( bool ));
+
/**
* The main() function of ngIRCd.
* Here all starts: this function is called by the operating system loader,
* called with already dropped privileges ... */
Channel_Init( );
Client_Init( );
-#ifdef ZEROCONF
- Rendezvous_Init( );
-#endif
Conn_Init( );
-#ifdef DEBUG
- /* Redirect stderr handle to "error file" for debugging
- * when not running in "no daemon" mode: */
- if( ! NGIRCd_NoDaemon ) Log_InitErrorfile( );
-#endif
if (!io_library_init(CONNECTION_POOL)) {
Log(LOG_ALERT, "Fatal: Cannot initialize IO routines: %s", strerror(errno));
exit(1);
/* Alles abmelden */
Conn_Exit( );
-#ifdef ZEROCONF
- Rendezvous_Exit( );
-#endif
Client_Exit( );
Channel_Exit( );
Log_Exit( );
strlcat( NGIRCd_VersionAddition, "+", sizeof NGIRCd_VersionAddition );
strlcat( NGIRCd_VersionAddition, "TCPWRAP", sizeof NGIRCd_VersionAddition );
#endif
-#ifdef ZEROCONF
- if( NGIRCd_VersionAddition[0] )
- strlcat( NGIRCd_VersionAddition, "+", sizeof NGIRCd_VersionAddition );
- strlcat( NGIRCd_VersionAddition, "ZEROCONF", sizeof NGIRCd_VersionAddition );
-#endif
#ifdef IDENTAUTH
if( NGIRCd_VersionAddition[0] )
strlcat( NGIRCd_VersionAddition, "+", sizeof NGIRCd_VersionAddition );
snprintf(NGIRCd_Version, sizeof NGIRCd_Version, "%s %s-%s",
PACKAGE_NAME, PACKAGE_VERSION, NGIRCd_VersionAddition);
- } /* Fill_Version */
+} /* Fill_Version */
/**
Show_Version( void )
{
puts( NGIRCd_Version );
- puts( "Copyright (c)2001-2010 Alexander Barton (<alex@barton.de>) and Contributors." );
+ puts( "Copyright (c)2001-2011 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." );
*gid = pwd->pw_gid;
endpwent();
- return true;
-}
+ return true;
+} /* NGIRCd_getNobodyID */
static bool
if (fd > 2)
close(fd);
return false;
-}
+} /* NGIRCd_Init */
+
/* -eof- */