From ec016a89e25a564ae720ed6e5f9fdd417f2c7113 Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Fri, 27 Dec 2002 13:37:43 +0000 Subject: [PATCH] - Fixed up KILL once more: it can't kill other clients than valid users now. --- ChangeLog | 7 ++++--- src/ngircd/irc.c | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 83da5eea..1fb6f30b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -12,8 +12,9 @@ ngIRCd 0.6.x-CVS - - Fixed KILL: you can't crash the server by killing yourself any more; - and ngIRCd no longer sends a QUIT to other servers after the KILL. + - Fixed KILL: you can't crash the server by killing yourself any more, + ngIRCd no longer sends a QUIT to other servers after the KILL, and you + can kill only valid users now. Older changes (sorry, only available in german language): @@ -377,4 +378,4 @@ ngIRCd 0.0.1, 31.12.2001 -- -$Id: ChangeLog,v 1.147.2.4 2002/12/26 19:01:29 alex Exp $ +$Id: ChangeLog,v 1.147.2.5 2002/12/27 13:37:43 alex Exp $ diff --git a/src/ngircd/irc.c b/src/ngircd/irc.c index 99c06271..b95805b4 100644 --- a/src/ngircd/irc.c +++ b/src/ngircd/irc.c @@ -14,7 +14,7 @@ #include "portab.h" -static char UNUSED id[] = "$Id: irc.c,v 1.107.2.1 2002/12/26 19:01:29 alex Exp $"; +static char UNUSED id[] = "$Id: irc.c,v 1.107.2.2 2002/12/27 13:37:43 alex Exp $"; #include "imp.h" #include @@ -82,7 +82,7 @@ IRC_KILL( CLIENT *Client, REQUEST *Req ) /* Do we host such a client? */ c = Client_Search( Req->argv[0] ); - if( c ) + if( c && Client_Type( c ) == CLIENT_USER ) { /* Yes, I found it! */ conn = Client_Conn( c );