]> arthur.barton.de Git - ngircd.git/commitdiff
- Fixed up KILL once more: it can't kill other clients than valid users now.
authorAlexander Barton <alex@barton.de>
Fri, 27 Dec 2002 13:37:43 +0000 (13:37 +0000)
committerAlexander Barton <alex@barton.de>
Fri, 27 Dec 2002 13:37:43 +0000 (13:37 +0000)
ChangeLog
src/ngircd/irc.c

index 83da5eea53fda07a19e1761750da386d6447282b..1fb6f30b4adbb0e6a102fc9f6f07b07a1cabaefd 100644 (file)
--- 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 $
index 99c0627125cc72eae6a8ecb65662a497abf0646f..b95805b4616edb3ed9394e3a223ac9288d161179 100644 (file)
@@ -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 <assert.h>
@@ -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 );