1
0
mirror of https://github.com/osmarks/ngircd.git synced 2024-10-28 04:46:17 +00:00

- auch bei IRC_NOTICE() wurde das Ziel nicht korrekt validiert.

This commit is contained in:
Alexander Barton 2002-06-11 13:58:43 +00:00
parent 5329241831
commit 9fd8254ada

View File

@ -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] );