+ /* Statuscode, der geforwarded werden muss? */
+ if(( strlen( Req->command ) == 3 ) && ( atoi( Req->command ) > 100 ))
+ {
+ /* Befehl ist ein Statuscode */
+
+ /* Zielserver ermitteln */
+ if(( Client_Type( client ) == CLIENT_SERVER ) && ( Req->argc > 0 )) target = Client_Search( Req->argv[0] );
+ else target = NULL;
+ if( ! target )
+ {
+ if( Req->argc > 0 ) Log( LOG_WARNING, "Unknown target for status code %s: \"%s\"", Req->command, Req->argv[0] );
+ else Log( LOG_WARNING, "Unknown target for status code %s!", Req->command );
+ return TRUE;
+ }
+ if( target == Client_ThisServer( ))
+ {
+ Log( LOG_DEBUG, "Ignored status code %s from \"%s\".", Req->command, Client_ID( client ));
+ return TRUE;
+ }
+
+ /* Quell-Client ermitteln */
+ if( ! Req->prefix[0] )
+ {
+ Log( LOG_WARNING, "Got status code without prefix!?" );
+ return TRUE;
+ }
+ else prefix = Client_Search( Req->prefix );
+ if( ! prefix )
+ {
+ Log( LOG_WARNING, "Got status code from unknown source: \"%s\"", Req->prefix );
+ return TRUE;
+ }
+
+ /* Statuscode weiterleiten */
+ strcpy( str, Req->command );
+ for( i = 0; i < Req->argc; i++ )
+ {
+ if( i < Req->argc - 1 ) strcat( str, " " );
+ else strcat( str, " :" );
+ strcat( str, Req->argv[i] );
+ }
+ return IRC_WriteStrClientPrefix( target, prefix, "%s", str );
+ }
+
+ if( strcasecmp( Req->command, "ADMIN" ) == 0 ) return IRC_ADMIN( client, Req );
+ else if( strcasecmp( Req->command, "AWAY" ) == 0 ) return IRC_AWAY( client, Req );
+ else if( strcasecmp( Req->command, "CONNECT" ) == 0 ) return IRC_CONNECT( client, Req );
+ else if( strcasecmp( Req->command, "DIE" ) == 0 ) return IRC_DIE( client, Req );
+ else if( strcasecmp( Req->command, "ERROR" ) == 0 ) return IRC_ERROR( client, Req );
+ else if( strcasecmp( Req->command, "INVITE" ) == 0 ) return IRC_INVITE( client, Req );
+ else if( strcasecmp( Req->command, "ISON" ) == 0 ) return IRC_ISON( client, Req );
+ else if( strcasecmp( Req->command, "JOIN" ) == 0 ) return IRC_JOIN( client, Req );
+ else if( strcasecmp( Req->command, "KICK" ) == 0 ) return IRC_KICK( client, Req );
+ else if( strcasecmp( Req->command, "KILL" ) == 0 ) return IRC_KILL( client, Req );
+ else if( strcasecmp( Req->command, "LINKS" ) == 0 ) return IRC_LINKS( client, Req );
+ else if( strcasecmp( Req->command, "LIST" ) == 0 ) return IRC_LIST( client, Req );
+ else if( strcasecmp( Req->command, "LUSERS" ) == 0 ) return IRC_LUSERS( client, Req );
+ else if( strcasecmp( Req->command, "MODE" ) == 0 ) return IRC_MODE( client, Req );
+ else if( strcasecmp( Req->command, "MOTD" ) == 0 ) return IRC_MOTD( client, Req );
+ else if( strcasecmp( Req->command, "NAMES" ) == 0 ) return IRC_NAMES( client, Req );