X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fngircd%2Fparse.c;h=b0706ef2f9fac57c536c822b3b72698c4e336f93;hb=ff54198f43eda3251eb117982728dd0cb145a921;hp=79c5d16f4e048bfde7bcffa6b7c723b958bef7a4;hpb=458174ffb0401c15fac9a69d48d956f3297a895f;p=ngircd-alex.git diff --git a/src/ngircd/parse.c b/src/ngircd/parse.c index 79c5d16f..b0706ef2 100644 --- a/src/ngircd/parse.c +++ b/src/ngircd/parse.c @@ -9,11 +9,23 @@ * 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.23 2002/02/17 23:38:58 alex Exp $ + * $Id: parse.c,v 1.27 2002/02/27 20:33:13 alex Exp $ * * parse.c: Parsen der Client-Anfragen * * $Log: parse.c,v $ + * Revision 1.27 2002/02/27 20:33:13 alex + * - Channel-Topics implementiert. + * + * Revision 1.26 2002/02/27 18:23:46 alex + * - IRC-Befehl "AWAY" implementert. + * + * Revision 1.25 2002/02/26 20:52:15 alex + * - Fehler bei Fehlermeldung wg. unbekanntem Prefix behoben. + * + * Revision 1.24 2002/02/23 21:39:48 alex + * - IRC-Befehl KILL sowie Kills bei Nick Collsisions implementiert. + * * Revision 1.23 2002/02/17 23:38:58 alex * - neuer IRC-Befehl VERSION implementiert: IRC_VERSION(). * @@ -311,7 +323,7 @@ LOCAL BOOLEAN Handle_Request( CONN_ID Idx, REQUEST *Req ) else target = NULL; if( ! target ) { - if( target ) Log( LOG_WARNING, "Unknown target for status code: \"%s\"", Req->argv[0] ); + if( Req->argc > 0 ) Log( LOG_WARNING, "Unknown target for status code: \"%s\"", Req->argv[0] ); else Log( LOG_WARNING, "Unknown target for status code!" ); return TRUE; } @@ -371,6 +383,9 @@ LOCAL BOOLEAN Handle_Request( CONN_ID Idx, REQUEST *Req ) else if( strcasecmp( Req->command, "JOIN" ) == 0 ) return IRC_JOIN( client, Req ); else if( strcasecmp( Req->command, "PART" ) == 0 ) return IRC_PART( client, Req ); else if( strcasecmp( Req->command, "VERSION" ) == 0 ) return IRC_VERSION( client, Req ); + else if( strcasecmp( Req->command, "KILL" ) == 0 ) return IRC_KILL( client, Req ); + else if( strcasecmp( Req->command, "AWAY" ) == 0 ) return IRC_AWAY( client, Req ); + else if( strcasecmp( Req->command, "TOPIC" ) == 0 ) return IRC_TOPIC( client, Req ); /* Unbekannter Befehl */ if( Client_Type( client ) != CLIENT_SERVER ) IRC_WriteStrClient( client, ERR_UNKNOWNCOMMAND_MSG, Client_ID( client ), Req->command );