repo: ngircd
action: commit
revision: 
path_from: 
revision_from: 9d82635b15acdf26784829674b97d454b741f447:
path_to: 
revision_to: 
git.thebackupbox.net
ngircd
git clone git://git.thebackupbox.net/ngircd
commit 9d82635b15acdf26784829674b97d454b741f447
Author: Alexander Barton 
Date:   Wed Jan 8 22:07:34 2003 +0000

    - Fixed IRC_KILL: used wrong connection index.

diff --git a/src/ngircd/irc.c b/src/ngircd/irc.c
index 684cc639abe66888a3fbd865ee07ada74315f231..
index ..4da7abd6fdf96552d612d68b30bbf49b3f09ae80 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.114 2002/12/31 16:09:55 alex Exp $";
+static char UNUSED id[] = "$Id: irc.c,v 1.115 2003/01/08 22:07:34 alex Exp $";

 #include "imp.h"
 #include 
@@ -95,7 +95,7 @@ IRC_KILL( CLIENT *Client, REQUEST *Req )
 			/* Kill user NOW! */
 			conn = Client_Conn( c );
 			Client_Destroy( c, NULL, reason, FALSE );
-			if( conn != NONE ) Conn_Close( Client_Conn( c ), NULL, reason, TRUE );
+			if( conn != NONE ) Conn_Close( conn, NULL, reason, TRUE );
 		}
 	}
 	else Log( LOG_NOTICE, "Client with nick \"%s\" is unknown here.", Req->argv[0] );

-----END OF PAGE-----