/*
* ngIRCd -- The Next Generation IRC Daemon
- * Copyright (c)2001,2002 by Alexander Barton (alex@barton.de)
+ * Copyright (c)2001-2003 by Alexander Barton (alex@barton.de)
*
* 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
#include "portab.h"
-static char UNUSED id[] = "$Id: ngircd.c,v 1.68 2002/12/26 16:48:14 alex Exp $";
+static char UNUSED id[] = "$Id: ngircd.c,v 1.74 2003/03/07 14:50:13 alex Exp $";
#include "imp.h"
#include <assert.h>
#include "parse.h"
#include "irc.h"
+#ifdef RENDEZVOUS
+#include "rendezvous.h"
+#endif
+
#include "exp.h"
#include "ngircd.h"
Lists_Init( );
Channel_Init( );
Client_Init( );
+#ifdef RENDEZVOUS
+ Rendezvous_Init( );
+#endif
Conn_Init( );
/* Wenn als root ausgefuehrt und eine andere UID
/* Alles abmelden */
Conn_Exit( );
+#ifdef RENDEZVOUS
+ Rendezvous_Exit( );
+#endif
Client_Exit( );
Channel_Exit( );
Lists_Exit( );
GLOBAL CHAR *
NGIRCd_VersionAddition( VOID )
{
- STATIC CHAR txt[64];
+ STATIC CHAR txt[200];
strcpy( txt, "" );
if( txt[0] ) strcat( txt, "+" );
strcat( txt, "ZLIB" );
#endif
+#ifdef USE_TCPWRAP
+ if( txt[0] ) strcat( txt, "+" );
+ strcat( txt, "TCPWRAP" );
+#endif
+#ifdef RENDEZVOUS
+ if( txt[0] ) strcat( txt, "+" );
+ strcat( txt, "RENDEZVOUS" );
+#endif
#ifdef DEBUG
if( txt[0] ) strcat( txt, "+" );
strcat( txt, "DEBUG" );
Conn_ExitListeners( );
/* Alten Server-Namen merken */
+ assert( sizeof( old_name ) == sizeof( Conf_ServerName ));
strcpy( old_name, Conf_ServerName );
/* Konfiguration neu lesen ... */
- Conf_Init( );
+ Conf_Rehash( );
/* Alten Server-Namen wiederherstellen: dieser
* kann nicht zur Laufzeit geaendert werden ... */
Show_Version( VOID )
{
puts( NGIRCd_Version( ));
- puts( "Copyright (c)2001,2002 by Alexander Barton (<alex@barton.de>)." );
+ puts( "Copyright (c)2001-2003 by Alexander Barton (<alex@barton.de>)." );
puts( "Homepage: <http://arthur.ath.cx/~alex/ngircd/>\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." );