about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2002-07-25 11:37:01 +0000
committerAlexander Barton <alex@barton.de>2002-07-25 11:37:01 +0000
commit3da161131a1fd94b572dd23963a612e16366a1e4 (patch)
tree03061760be6d196353a1be1740337c0e16ad4e75
parentb1f4200608ba822370d2fc8e0caf33d519f183b3 (diff)
downloadngircd-3da161131a1fd94b572dd23963a612e16366a1e4.tar.gz
ngircd-3da161131a1fd94b572dd23963a612e16366a1e4.zip
- KILL konnte keine Remote-Clients toeten; zudem besseres Logging.
-rw-r--r--src/ngircd/irc.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/ngircd/irc.c b/src/ngircd/irc.c
index 024cb106..4ec0427f 100644
--- a/src/ngircd/irc.c
+++ b/src/ngircd/irc.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.c,v 1.93 2002/06/11 13:58:43 alex Exp $
+ * $Id: irc.c,v 1.94 2002/07/25 11:37:01 alex Exp $
  *
  * irc.c: IRC-Befehle
  */
@@ -643,8 +643,14 @@ IRC_KILL( CLIENT *Client, REQUEST *Req )
 
 	/* haben wir selber einen solchen Client? */
 	c = Client_Search( Req->argv[0] );
-	if( c && ( Client_Conn( c ) != NONE )) Conn_Close( Client_Conn( c ), NULL, Req->argv[1], TRUE );
-	
+	if( c )
+	{
+		/* Ja, wir haben einen solchen Client */
+		if( Client_Conn( c ) != NONE ) Conn_Close( Client_Conn( c ), NULL, Req->argv[1], TRUE );
+		else Client_Destroy( c, NULL, Req->argv[1], TRUE );
+	}
+	else Log( LOG_NOTICE, "Client with nick \"%s\" is unknown here.", Req->argv[0] );
+
 	return CONNECTED;
 } /* IRC_KILL */