]> arthur.barton.de Git - ngircd-alex.git/commitdiff
- IRC_INVITE() validierte das Ziel eines INVITES nicht korrekt.
authorAlexander Barton <alex@barton.de>
Tue, 11 Jun 2002 13:59:07 +0000 (13:59 +0000)
committerAlexander Barton <alex@barton.de>
Tue, 11 Jun 2002 13:59:07 +0000 (13:59 +0000)
src/ngircd/irc-op.c

index d4a71f00f1bba1186780531441c76dbef4b3a62e..8bc38307e5dcb3b71b03383e8a8b13d4f8670216 100644 (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-op.c,v 1.4 2002/06/09 13:17:29 alex Exp $
+ * $Id: irc-op.c,v 1.5 2002/06/11 13:59:07 alex Exp $
  *
  * irc-op.c: Befehle zur Channel-Verwaltung
  */
@@ -101,7 +101,7 @@ IRC_INVITE( CLIENT *Client, REQUEST *Req )
        
        /* User suchen */
        target = Client_Search( Req->argv[0] );
-       if( ! target ) return IRC_WriteStrClient( from, ERR_NOSUCHNICK_MSG, Client_ID( Client ), Req->argv[0] );
+       if(( ! target ) || ( Client_Type( target ) != CLIENT_USER )) return IRC_WriteStrClient( from, ERR_NOSUCHNICK_MSG, Client_ID( Client ), Req->argv[0] );
 
        chan = Channel_Search( Req->argv[1] );