Commit Diff


commit - c57a4645dedbf608c7906b571a0e2f411b6cb7f0
commit + 4c6a99cf0b7b0d613eafc6ea7e19e1e10616fd4d
blob - 98d5094e76e2b43e0e7591258213d230f3aecb9f
blob + 586b80d4c6d15f1b9f853be3103f77d0b85d8047
--- src/ngircd/parse.c
+++ 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 *Re
 	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 *Re
 	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 );