+#endif
+
+ /* Hello World! */
+ Log( LOG_NOTICE, "%s started.", NGIRCd_Version( ));
+
+ /* Informationen uebern den "Operation Mode" */
+ strcpy( txt, "" );
+#ifdef DEBUG
+ if( NGIRCd_Debug )
+ {
+ if( txt[0] ) strcat( txt, ", " );
+ strcat( txt, "debug-mode" );
+ }
+#endif
+ if( NGIRCd_NoDaemon )
+ {
+ if( txt[0] ) strcat( txt, ", " );
+ strcat( txt, "no-daemon-mode" );
+ }
+ if( NGIRCd_Passive )
+ {
+ if( txt[0] ) strcat( txt, ", " );
+ strcat( txt, "passive-mode" );
+ }
+#ifdef SNIFFER
+ if( NGIRCd_Sniffer )
+ {
+ if( txt[0] ) strcat( txt, ", " );
+ strcat( txt, "network sniffer" );
+ }
+#endif
+ if( txt[0] ) Log( LOG_INFO, "Activating: %s.", txt );
+
+ /* stderr in Datei umlenken */
+ fflush( stderr );
+ if( ! freopen( ERROR_FILE, "a+", stderr )) Log( LOG_ERR, "Can't reopen stderr (\""ERROR_FILE"\"): %s", strerror( errno ));
+
+ fprintf( stderr, "\n--- %s ---\n\n", NGIRCd_StartStr );
+ fprintf( stderr, "%s started.\npid=%d, ppid=%d, uid=%d, gid=%d [euid=%d, egid=%d].\nActivating: %s\n\n", NGIRCd_Version( ), getpid( ), getppid( ), getuid( ), getgid( ), geteuid( ), getegid( ), txt[0] ? txt : "-" );
+ fflush( stderr );