repo: ngircd
action: commit
revision: 
path_from: 
revision_from: 1ff2fceb22a8e5f5b02dab3e7b5e31b36381d07d:
path_to: 
revision_to: 
git.thebackupbox.net
ngircd
git clone git://git.thebackupbox.net/ngircd
commit 1ff2fceb22a8e5f5b02dab3e7b5e31b36381d07d
Author: Alexander Barton 
Date:   Tue Feb 26 20:52:15 2002 +0000

    - Fehler bei Fehlermeldung wg. unbekanntem Prefix behoben.

diff --git a/src/ngircd/parse.c b/src/ngircd/parse.c
index 361158e9332cd8d839b15f699d2729909b0d7a40..
index ..89438bc18e65cbd7001c6937cb276c9d79817055 100644
--- a/src/ngircd/parse.c
+++ b/src/ngircd/parse.c
@@ -9,11 +9,14 @@
  * 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.24 2002/02/23 21:39:48 alex Exp $
+ * $Id: parse.c,v 1.25 2002/02/26 20:52:15 alex Exp $
  *
  * parse.c: Parsen der Client-Anfragen
  *
  * $Log: parse.c,v $
+ * 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.
  *
@@ -314,7 +317,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;
 		}

-----END OF PAGE-----