From 9fd8254ada3784a21f4e670b273aae39151bae43 Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Tue, 11 Jun 2002 13:58:43 +0000 Subject: [PATCH] - auch bei IRC_NOTICE() wurde das Ziel nicht korrekt validiert. --- src/ngircd/irc.c | 4 ++-- 1 file 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] ); -- 2.39.2