commit - ec016a89e25a564ae720ed6e5f9fdd417f2c7113
commit + 3da58202e63aeb9241600b77e3922616087be768
blob - b95805b4616edb3ed9394e3a223ac9288d161179
blob + 8d02c4c30e3ec08b9cead880b26e287ea23d895d
--- src/ngircd/irc.c
+++ src/ngircd/irc.c
#include "portab.h"
-static char UNUSED id[] = "$Id: irc.c,v 1.107.2.2 2002/12/27 13:37:43 alex Exp $";
+static char UNUSED id[] = "$Id: irc.c,v 1.107.2.3 2002/12/31 15:48:33 alex Exp $";
#include "imp.h"
#include <assert.h>
{
CLIENT *prefix, *c;
CHAR reason[COMMAND_LEN];
- CONN_ID conn;
+ CONN_ID my_conn, conn;
assert( Client != NULL );
assert( Req != NULL );
/* Inform other servers */
IRC_WriteStrServersPrefix( Client, prefix, "KILL %s :%s", Req->argv[0], reason );
+
+ /* Save ID of this connection */
+ my_conn = Client_Conn( Client );
/* Do we host such a client? */
c = Client_Search( Req->argv[0] );
else Log( LOG_NOTICE, "Client with nick \"%s\" is unknown here.", Req->argv[0] );
/* Are we still connected or were we killed, too? */
- if( Client_Search( Req->argv[0] )) return CONNECTED;
+ if( Client_GetFromConn( my_conn )) return CONNECTED;
else return DISCONNECTED;
} /* IRC_KILL */