- "STATS l" now only shows server-server-links and the own connection.

This commit is contained in:
Alexander Barton 2002-12-18 13:07:46 +00:00
parent 03d5fd6cb7
commit 98677b4348
1 changed files with 3 additions and 2 deletions

View File

@ -14,7 +14,7 @@
#include "portab.h" #include "portab.h"
static char UNUSED id[] = "$Id: irc-info.c,v 1.6 2002/12/16 17:14:57 alex Exp $"; static char UNUSED id[] = "$Id: irc-info.c,v 1.7 2002/12/18 13:07:46 alex Exp $";
#include "imp.h" #include "imp.h"
#include <assert.h> #include <assert.h>
@ -368,8 +368,9 @@ IRC_STATS( CLIENT *Client, REQUEST *Req )
while( con != NONE ) while( con != NONE )
{ {
cl = Client_GetFromConn( con ); cl = Client_GetFromConn( con );
if( cl ) if( cl && (( Client_Type( cl ) == CLIENT_SERVER ) || ( cl == Client )))
{ {
/* Server link or our own connection */
#ifdef USE_ZLIB #ifdef USE_ZLIB
if( Conn_Options( con ) & CONN_ZIP ) if( Conn_Options( con ) & CONN_ZIP )
{ {