diff options
| author | Alexander Barton <alex@barton.de> | 2002-06-11 13:59:07 +0000 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2002-06-11 13:59:07 +0000 |
| commit | 151babd1689a0758b927ef0d6c7a215249a57983 (patch) | |
| tree | 366848f7260eec3518778a9502bf9baff463c136 /src | |
| parent | 9fd8254ada3784a21f4e670b273aae39151bae43 (diff) | |
| download | ngircd-151babd1689a0758b927ef0d6c7a215249a57983.tar.gz ngircd-151babd1689a0758b927ef0d6c7a215249a57983.zip | |
- IRC_INVITE() validierte das Ziel eines INVITES nicht korrekt.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ngircd/irc-op.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ngircd/irc-op.c b/src/ngircd/irc-op.c index d4a71f00..8bc38307 100644 --- a/src/ngircd/irc-op.c +++ b/src/ngircd/irc-op.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-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] ); |