X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fngircd%2Fparse.c;h=8bc0dbcb8efc06b3626cd61314adc558888755b6;hb=caa7049e2b8d19c6f25c973dbd157626c47d2f21;hp=5fbb66829051c12937be619ba7201cd04a128851;hpb=5063de59b152db79827ed9ef7d1e31fa60fa6cc5;p=ngircd-alex.git diff --git a/src/ngircd/parse.c b/src/ngircd/parse.c index 5fbb6682..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.35 2002/07/29 20:35:33 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,8 +347,12 @@ 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 ); Log( LOG_DEBUG, "Connection %d: Unknown command \"%s\", %d %s,%s prefix.", Client_Conn( client ), Req->command, Req->argc, Req->argc == 1 ? "parameter" : "parameters", Req->prefix ? "" : " no" );