about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2002-06-11 13:58:43 +0000
committerAlexander Barton <alex@barton.de>2002-06-11 13:58:43 +0000
commit9fd8254ada3784a21f4e670b273aae39151bae43 (patch)
treecc4de9350f5a1a230d8fadc734e607b2673a449e
parent5329241831d32727862bbd20fab17deaa3c44228 (diff)
downloadngircd-9fd8254ada3784a21f4e670b273aae39151bae43.tar.gz
ngircd-9fd8254ada3784a21f4e670b273aae39151bae43.zip
- auch bei IRC_NOTICE() wurde das Ziel nicht korrekt validiert.
-rw-r--r--src/ngircd/irc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ngircd/irc.c b/src/ngircd/irc.c
index e710d1c7..024cb106 100644
--- a/src/ngircd/irc.c
+++ b/src/ngircd/irc.c
@@ -9,7 +9,7 @@
  * Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
  * der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
  *
- * $Id: irc.c,v 1.92 2002/06/10 21:08:45 alex Exp $
+ * $Id: irc.c,v 1.93 2002/06/11 13:58:43 alex Exp $
  *
  * irc.c: IRC-Befehle
  */
@@ -119,7 +119,7 @@ IRC_NOTICE( CLIENT *Client, REQUEST *Req )
 	if( ! from ) return IRC_WriteStrClient( Client, ERR_NOSUCHNICK_MSG, Client_ID( Client ), Req->prefix );
 
 	to = Client_Search( Req->argv[0] );
-	if( to )
+	if(( to ) && ( Client_Type( to ) == CLIENT_USER ))
 	{
 		/* Okay, Ziel ist ein User */
 		return IRC_WriteStrClientPrefix( to, from, "NOTICE %s :%s", Client_ID( to ), Req->argv[1] );