+LOCAL VOID Initialize_Listen_Ports( VOID )
+{
+ /* Ports, auf denen der Server Verbindungen entgegennehmen
+ * soll, initialisieren */
+
+ INT created, i;
+
+ created = 0;
+ for( i = 0; i < Conf_ListenPorts_Count; i++ )
+ {
+ if( Conn_NewListener( Conf_ListenPorts[i] )) created++;
+ else Log( LOG_ERR, "Can't listen on port %d!", Conf_ListenPorts[i] );
+ }
+
+ if( created < 1 )
+ {
+ Log( LOG_ALERT, "Server isn't listening on a single port!" );
+ Log( LOG_ALERT, PACKAGE" exiting due to fatal errors!" );
+ exit( 1 );
+ }
+} /* Initialize_Listen_Ports */
+
+
+LOCAL VOID Show_Version( VOID )
+{
+ puts( NGIRCd_Version( ));
+ puts( "Copyright (c)2001,2002 by Alexander Barton (alex@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." );
+} /* Show_Version */
+
+
+LOCAL VOID Show_Help( VOID )
+{
+ puts( "Compile-time defaults:\n" );
+ puts( " - configuration: "CONFIG_FILE );
+ puts( " - MOTD file: "MOTD_FILE );
+ puts( " - server error log: "ERROR_FILE"\n" );
+ puts( "Run-time options:\n" );
+#ifdef DEBUG
+ puts( " -d, --debug log extra debug messages" );
+#endif
+ puts( " -n, --nodaemon don't fork and don't detatch from controlling terminal" );
+ puts( " -p, --passive disable automatic connections to other servers" );
+#ifdef SNIFFER
+ puts( " -s, --sniffer enable network sniffer and display all IRC traffic" );
+#endif
+ puts( " --version output version information and exit" );
+ puts( " --help display this help and exit" );
+} /* Show_Help */
+
+