commit - 3c0c3c3c5f052a25494234862e21e5ecd686f3a6
commit + f22f1cf4f4ed4e6fe0e75dc69154022003bcba78
blob - 3e1e710bad885417c6c22a0bf59f682150ef788f
blob + 31e568ca2b1f41946a25fcdaadc6627f72b4e002
--- src/ngircd/channel.c
+++ src/ngircd/channel.c
* Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
* der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
*
- * $Id: channel.c,v 1.20 2002/03/25 16:54:26 alex Exp $
+ * $Id: channel.c,v 1.21 2002/04/23 19:51:31 alex Exp $
*
* channel.c: Management der Channels
*/
}
return count;
} /* Channel_Count */
+
+
+GLOBAL INT Channel_MemberCount( CHANNEL *Chan )
+{
+ CL2CHAN *cl2chan;
+ INT count;
+
+ assert( Chan != NULL );
+
+ count = 0;
+ cl2chan = My_Cl2Chan;
+ while( cl2chan )
+ {
+ if( cl2chan->channel == Chan ) count++;
+ cl2chan = cl2chan->next;
+ }
+ return count;
+} /* Channel_MemberCount */
GLOBAL CHAR *Channel_Name( CHANNEL *Chan )
blob - 6728e5a6125849bdbfcc806447430d69290e5d06
blob + d0752bcab9627451aae622b6ac8c25d2696cdd8d
--- src/ngircd/channel.h
+++ src/ngircd/channel.h
* Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
* der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
*
- * $Id: channel.h,v 1.16 2002/03/25 19:11:01 alex Exp $
+ * $Id: channel.h,v 1.17 2002/04/23 19:51:31 alex Exp $
*
* channel.h: Management der Channels (Header)
*/
GLOBAL VOID Channel_RemoveClient( CLIENT *Client, CHAR *Reason );
GLOBAL INT Channel_Count( VOID );
+GLOBAL INT Channel_MemberCount( CHANNEL *Chan );
GLOBAL CHAR *Channel_Name( CHANNEL *Chan );
GLOBAL CHAR *Channel_Modes( CHANNEL *Chan );