#include "portab.h"
-static char UNUSED id[] = "$Id: irc.c,v 1.127 2005/07/31 20:13:08 alex Exp $";
+static char UNUSED id[] = "$Id: irc.c,v 1.131 2006/07/23 14:55:40 alex Exp $";
#include "imp.h"
#include <assert.h>
#include <string.h>
#include "ngircd.h"
-#include "conn.h"
#include "resolve.h"
-#include "conf.h"
#include "conn-func.h"
+#include "conf.h"
#include "client.h"
#include "channel.h"
#include "defines.h"
}
/* Kill client NOW! */
- conn = Client_Conn( Client_NextHop( c ));
+ conn = Client_Conn( c );
Client_Destroy( c, NULL, reason, false );
if( conn > NONE )
Conn_Close( conn, NULL, reason, true );
Log( LOG_NOTICE, "Client with nick \"%s\" is unknown here.", Req->argv[0] );
/* Are we still connected or were we killed, too? */
- if(( my_conn > NONE ) && ( Client_GetFromConn( my_conn )))
+ if(( my_conn > NONE ) && ( Conn_GetClient( my_conn )))
return CONNECTED;
else
return DISCONNECTED;
Option_String( CONN_ID Idx )
{
static char option_txt[8];
- int options;
+ UINT16 options;
- options = Conn_Options( Idx );
+ options = Conn_Options(Idx);
- strcpy( option_txt, "F" ); /* No idea what this means but the original ircd sends it ... */
+ strcpy(option_txt, "F"); /* No idea what this means, but the
+ * original ircd sends it ... */
#ifdef ZLIB
- if( options & CONN_ZIP ) strcat( option_txt, "z" );
+ if(options & CONN_ZIP) /* zlib compression supported. */
+ strcat(option_txt, "z");
#endif
return option_txt;