X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fngircd%2Fparse.c;h=8bc0dbcb8efc06b3626cd61314adc558888755b6;hb=05839597bf9cc74b0e390ad5c6a6b747697f7abe;hp=fab74f9530159554c2ffbd7885e5910a215e06c5;hpb=d1ac40391ec9b162f2218a14d1f19709841187e9;p=ngircd-alex.git diff --git a/src/ngircd/parse.c b/src/ngircd/parse.c index fab74f95..8bc0dbcb 100644 --- a/src/ngircd/parse.c +++ b/src/ngircd/parse.c @@ -9,7 +9,7 @@ * Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste * der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS. * - * $Id: parse.c,v 1.38 2002/09/03 23:54:06 alex Exp $ + * $Id: parse.c,v 1.42 2002/10/04 11:21:46 alex Exp $ * * parse.c: Parsen der Client-Anfragen */ @@ -311,7 +311,7 @@ Handle_Request( CONN_ID Idx, REQUEST *Req ) else strcat( str, " :" ); strcat( str, Req->argv[i] ); } - return IRC_WriteStrClientPrefix( target, prefix, str ); + return IRC_WriteStrClientPrefix( target, prefix, "%s", str ); } if( strcasecmp( Req->command, "PASS" ) == 0 ) return IRC_PASS( client, Req ); @@ -347,9 +347,11 @@ Handle_Request( CONN_ID Idx, REQUEST *Req ) else if( strcasecmp( Req->command, "LIST" ) == 0 ) return IRC_LIST( client, Req ); else if( strcasecmp( Req->command, "INVITE" ) == 0 ) return IRC_INVITE( client, Req ); else if( strcasecmp( Req->command, "KICK" ) == 0 ) return IRC_KICK( client, Req ); - else if( strcasecmp( Req->command, "BAN" ) == 0 ) return IRC_BAN( client, Req ); else if( strcasecmp( Req->command, "CONNECT" ) == 0 ) return IRC_CONNECT( client, Req ); + else if( strcasecmp( Req->command, "ADMIN" ) == 0 ) return IRC_ADMIN( client, Req ); +#ifdef IRCPLUS else if( strcasecmp( Req->command, "CHANINFO" ) == 0 ) return IRC_CHANINFO( client, Req ); +#endif /* Unbekannter Befehl */ if( Client_Type( client ) != CLIENT_SERVER ) IRC_WriteStrClient( client, ERR_UNKNOWNCOMMAND_MSG, Client_ID( client ), Req->command );