commit - bd5de06c67e7a496819e3116854cefc25cb4267e
commit + 3be7b9ef59cf7425c87e4b44c7345287eb13c425
blob - 1b634e547f5d8007aedc2a36c58e7e61169c35ba
blob + b3b6118172f6bdcaf3906c9b41890f179354740d
--- src/ngircd/client.c
+++ src/ngircd/client.c
* Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
* der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
*
- * $Id: client.c,v 1.53 2002/03/27 20:52:58 alex Exp $
+ * $Id: client.c,v 1.54 2002/04/14 13:54:51 alex Exp $
*
* client.c: Management aller Clients
*
GLOBAL INT Client_MyServerCount( VOID )
{
- return MyCount( CLIENT_SERVER );
+ CLIENT *c;
+ INT cnt;
+
+ cnt = 0;
+ c = My_Clients;
+ while( c )
+ {
+ if(( c->type == CLIENT_SERVER ) && ( c->hops == 1 )) cnt++;
+ c = (CLIENT *)c->next;
+ }
+ return cnt;
} /* Client_MyServerCount */
c = My_Clients;
while( c )
{
- if( c && ( c->type == Type )) cnt++;
+ if( c->type == Type ) cnt++;
c = (CLIENT *)c->next;
}
return cnt;
c = My_Clients;
while( c )
{
- if( c && ( c->introducer == This_Server ) && ( c->type == Type )) cnt++;
+ if(( c->introducer == This_Server ) && ( c->type == Type )) cnt++;
c = (CLIENT *)c->next;
}
return cnt;