+GLOBAL CHAR *
+NGIRCd_Version( VOID )
+{
+ STATIC CHAR version[126];
+
+#ifdef CVSDATE
+ sprintf( version, "%s %s(%s)-%s", PACKAGE, VERSION, CVSDATE, NGIRCd_VersionAddition( ));
+#else
+ sprintf( version, "%s %s-%s", PACKAGE, VERSION, NGIRCd_VersionAddition( ));
+#endif
+ return version;
+} /* NGIRCd_Version */
+
+
+GLOBAL CHAR *
+NGIRCd_VersionAddition( VOID )
+{
+ STATIC CHAR txt[200];
+
+ strcpy( txt, "" );
+
+#ifdef USE_SYSLOG
+ if( txt[0] ) strcat( txt, "+" );
+ strcat( txt, "SYSLOG" );
+#endif
+#ifdef USE_ZLIB
+ 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" );
+#endif
+#ifdef SNIFFER
+ if( txt[0] ) strcat( txt, "+" );
+ strcat( txt, "SNIFFER" );
+#endif
+#ifdef STRICT_RFC
+ if( txt[0] ) strcat( txt, "+" );
+ strcat( txt, "RFC" );
+#endif
+#ifdef IRCPLUS
+ if( txt[0] ) strcat( txt, "+" );
+ strcat( txt, "IRCPLUS" );
+#endif
+
+ if( txt[0] ) strlcat( txt, "-", sizeof( txt ));
+ strlcat( txt, TARGET_CPU, sizeof( txt ));
+ strlcat( txt, "/", sizeof( txt ));
+ strlcat( txt, TARGET_VENDOR, sizeof( txt ));
+ strlcat( txt, "/", sizeof( txt ));
+ strlcat( txt, TARGET_OS, sizeof( txt ));
+
+ return txt;
+} /* NGIRCd_VersionAddition */
+
+
+GLOBAL VOID
+NGIRCd_Rehash( VOID )
+{
+ CHAR old_name[CLIENT_ID_LEN];
+
+ Log( LOG_NOTICE|LOG_snotice, "Re-reading configuration NOW!" );
+ NGIRCd_SignalRehash = FALSE;
+
+ /* Alle Listen-Sockets schliessen */
+ Conn_ExitListeners( );
+
+ /* Alten Server-Namen merken */
+ assert( sizeof( old_name ) == sizeof( Conf_ServerName ));
+ strcpy( old_name, Conf_ServerName );
+
+ /* Konfiguration neu lesen ... */
+ Conf_Rehash( );
+
+ /* Alten Server-Namen wiederherstellen: dieser
+ * kann nicht zur Laufzeit geaendert werden ... */
+ if( strcmp( old_name, Conf_ServerName ) != 0 )
+ {
+ strcpy( Conf_ServerName, old_name );
+ Log( LOG_ERR, "Can't change \"ServerName\" on runtime! Ignored new name." );
+ }
+
+ /* neue pre-defined Channel anlegen: */
+ Channel_InitPredefined( );
+
+ /* Listen-Sockets neu anlegen: */
+ Conn_InitListeners( );
+
+ Log( LOG_NOTICE|LOG_snotice, "Re-reading of configuration done." );
+} /* NGIRCd_Rehash */
+
+
+LOCAL VOID
+Initialize_Signal_Handler( VOID )