about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2003-01-08 22:07:34 +0000
committerAlexander Barton <alex@barton.de>2003-01-08 22:07:34 +0000
commit9d82635b15acdf26784829674b97d454b741f447 (patch)
tree67d918370c763fe684b60d759da1f932f4fd2e61 /src
parentfa80012e713d297983d9f18bb4f033c6ffae5a7d (diff)
downloadngircd-9d82635b15acdf26784829674b97d454b741f447.tar.gz
ngircd-9d82635b15acdf26784829674b97d454b741f447.zip
- Fixed IRC_KILL: used wrong connection index.
Diffstat (limited to 'src')
-rw-r--r--src/ngircd/irc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ngircd/irc.c b/src/ngircd/irc.c
index 684cc639..4da7abd6 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 <assert.h>
@@ -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] );