X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=blobdiff_plain;f=src%2Fngircd%2Fparse.c;h=8629d51712c30e9d7144e44c3e8747cf1dedbf3f;hp=bab9c6c5ec96d18fff4374c455f2b6b67bb06eea;hb=d79a7d287a6198d399a289c7751364a48e2eaf79;hpb=3543c2220adf82efe549b39030741766717b8f25;ds=sidebyside diff --git a/src/ngircd/parse.c b/src/ngircd/parse.c index bab9c6c5..8629d517 100644 --- a/src/ngircd/parse.c +++ b/src/ngircd/parse.c @@ -9,11 +9,17 @@ * 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.19 2002/01/09 01:08:42 alex Exp $ + * $Id: parse.c,v 1.21 2002/01/18 11:12:11 alex Exp $ * * parse.c: Parsen der Client-Anfragen * * $Log: parse.c,v $ + * Revision 1.21 2002/01/18 11:12:11 alex + * - der Sniffer wird nun nur noch aktiviert, wenn auf Kommandozeile angegeben. + * + * Revision 1.20 2002/01/11 23:50:55 alex + * - LINKS implementiert, LUSERS begonnen. + * * Revision 1.19 2002/01/09 01:08:42 alex * - Parses handhabt Leerzeichen zw. Parametern nun etwas "lockerer". * @@ -91,6 +97,7 @@ #include #include +#include "ngircd.h" #include "client.h" #include "conn.h" #include "irc.h" @@ -136,7 +143,7 @@ GLOBAL BOOLEAN Parse_Request( CONN_ID Idx, CHAR *Request ) assert( Request != NULL ); #ifdef SNIFFER - Log( LOG_DEBUG, " <- connection %d: '%s'.", Idx, Request ); + if( NGIRCd_Sniffer ) Log( LOG_DEBUG, " <- connection %d: '%s'.", Idx, Request ); #endif Init_Request( &req ); @@ -353,6 +360,8 @@ LOCAL BOOLEAN Handle_Request( CONN_ID Idx, REQUEST *Req ) else if( strcasecmp( Req->command, "DIE" ) == 0 ) return IRC_DIE( client, Req ); else if( strcasecmp( Req->command, "RESTART" ) == 0 ) return IRC_RESTART( client, Req ); else if( strcasecmp( Req->command, "ERROR" ) == 0 ) return IRC_ERROR( client, Req ); + else if( strcasecmp( Req->command, "LUSERS" ) == 0 ) return IRC_LUSERS( client, Req ); + else if( strcasecmp( Req->command, "LINKS" ) == 0 ) return IRC_LINKS( client, Req ); /* Unbekannter Befehl */ if( Client_Type( client ) != CLIENT_SERVER ) IRC_WriteStrClient( client, ERR_UNKNOWNCOMMAND_MSG, Client_ID( client ), Req->command );