From 4c6a99cf0b7b0d613eafc6ea7e19e1e10616fd4d Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Thu, 27 Dec 2001 19:13:21 +0000 Subject: [PATCH] - neue Befehle NOTICE und PRIVMSG. - Debug-Logging ein wenig reduziert. --- src/ngircd/parse.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/ngircd/parse.c b/src/ngircd/parse.c index 98d5094e..586b80d4 100644 --- a/src/ngircd/parse.c +++ b/src/ngircd/parse.c @@ -9,11 +9,15 @@ * Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste * der an comBase beteiligten Autoren finden Sie in der Datei AUTHORS. * - * $Id: parse.c,v 1.6 2001/12/26 14:45:37 alex Exp $ + * $Id: parse.c,v 1.7 2001/12/27 19:13:21 alex Exp $ * * parse.c: Parsen der Client-Anfragen * * $Log: parse.c,v $ + * Revision 1.7 2001/12/27 19:13:21 alex + * - neue Befehle NOTICE und PRIVMSG. + * - Debug-Logging ein wenig reduziert. + * * Revision 1.6 2001/12/26 14:45:37 alex * - "Code Cleanups". * @@ -214,10 +218,6 @@ LOCAL BOOLEAN Handle_Request( CONN_ID Idx, REQUEST *Req ) assert( Req != NULL ); assert( Req->command != NULL ); -#ifdef SNIFFER - Log( LOG_DEBUG, " connection %d: '%s', %d %s,%s prefix.", Idx, Req->command, Req->argc, Req->argc == 1 ? "parameter" : "parameters", Req->prefix ? "" : " no" ); -#endif - client = Client_GetFromConn( Idx ); assert( client != NULL ); @@ -228,7 +228,9 @@ LOCAL BOOLEAN Handle_Request( CONN_ID Idx, REQUEST *Req ) else if( strcasecmp( Req->command, "PING" ) == 0 ) return IRC_PING( client, Req ); else if( strcasecmp( Req->command, "PONG" ) == 0 ) return IRC_PONG( client, Req ); else if( strcasecmp( Req->command, "MOTD" ) == 0 ) return IRC_MOTD( client, Req ); - + else if( strcasecmp( Req->command, "PRIVMSG" ) == 0 ) return IRC_PRIVMSG( client, Req ); + else if( strcasecmp( Req->command, "NOTICE" ) == 0 ) return IRC_NOTICE( client, Req ); + /* Unbekannter Befehl */ IRC_WriteStrClient( client, This_Server, ERR_UNKNOWNCOMMAND_MSG, Client_Name( client ), Req->command ); -- 2.39.2