about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2002-12-18 13:07:46 +0000
committerAlexander Barton <alex@barton.de>2002-12-18 13:07:46 +0000
commit98677b4348f8865261cada54249d6ce59b6eb47d (patch)
treed4c702498b12a451cd59abbcf848feb873afc460 /src
parent03d5fd6cb76ab0a7f008e6370be2248f6c0241d8 (diff)
downloadngircd-98677b4348f8865261cada54249d6ce59b6eb47d.tar.gz
ngircd-98677b4348f8865261cada54249d6ce59b6eb47d.zip
- "STATS l" now only shows server-server-links and the own connection.
Diffstat (limited to 'src')
-rw-r--r--src/ngircd/irc-info.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ngircd/irc-info.c b/src/ngircd/irc-info.c
index 922e2761..511d2a23 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 <assert.h>
@@ -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 )
 					{