repo: ngircd
action: commit
revision: 
path_from: 
revision_from: 98677b4348f8865261cada54249d6ce59b6eb47d:
path_to: 
revision_to: 
git.thebackupbox.net
ngircd
git clone git://git.thebackupbox.net/ngircd
commit 98677b4348f8865261cada54249d6ce59b6eb47d
Author: Alexander Barton 
Date:   Wed Dec 18 13:07:46 2002 +0000

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

diff --git a/src/ngircd/irc-info.c b/src/ngircd/irc-info.c
index 922e2761c36600c760deab753e5c60e18f4d4b8c..
index ..511d2a2340c7e16f79f87dcfcf9fc2ca6864f6c8 100644
--- a/src/ngircd/irc-info.c
+++ b/src/ngircd/irc-info.c
@@ -14,7 +14,7 @@

 #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 
@@ -368,8 +368,9 @@ IRC_STATS( CLIENT *Client, REQUEST *Req )
 			while( con != NONE )
 			{
 				cl = Client_GetFromConn( con );
-				if( cl )
+				if( cl && (( Client_Type( cl ) == CLIENT_SERVER ) || ( cl == Client )))
 				{
+					/* Server link or our own connection */
 #ifdef USE_ZLIB
 					if( Conn_Options( con ) & CONN_ZIP )
 					{

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