X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fngircd%2Fchannel.h;h=6117c669121a0d3aa1ea06b604851c21732abce0;hb=fa7bb279;hp=e6e3d40e51e32222376576f8d16d0eab05e8e1ed;hpb=6e105bf87ee5008f32b7557eea2977deb8d10a71;p=ngircd-alex.git diff --git a/src/ngircd/channel.h b/src/ngircd/channel.h index e6e3d40e..6117c669 100644 --- a/src/ngircd/channel.h +++ b/src/ngircd/channel.h @@ -8,7 +8,7 @@ * (at your option) any later version. * Please read the file COPYING, README and AUTHORS for more information. * - * $Id: channel.h,v 1.31 2006/10/06 21:32:58 fw Exp $ + * $Id: channel.h,v 1.32 2006/12/07 17:57:20 fw Exp $ * * Channel management (header) */ @@ -20,6 +20,7 @@ #if defined(__channel_c__) | defined(S_SPLINT_S) +#include "lists.h" #include "defines.h" #include "array.h" @@ -36,6 +37,8 @@ typedef struct _CHANNEL #endif char key[CLIENT_PASS_LEN]; /* Channel key ("password", mode "k" ) */ unsigned long maxusers; /* Maximum number of members (mode "l") */ + struct list_head list_bans; /* list head of banned users */ + struct list_head list_invites; /* list head of invited users */ } CHANNEL; typedef struct _CLIENT2CHAN @@ -53,6 +56,8 @@ typedef POINTER CL2CHAN; #endif +GLOBAL struct list_head *Channel_GetListBans PARAMS((CHANNEL *c)); +GLOBAL struct list_head *Channel_GetListInvites PARAMS((CHANNEL *c)); GLOBAL void Channel_Init PARAMS(( void )); GLOBAL void Channel_InitPredefined PARAMS(( void )); @@ -114,8 +119,10 @@ GLOBAL unsigned int Channel_TopicTime PARAMS(( CHANNEL *Chan )); GLOBAL char *Channel_TopicWho PARAMS(( CHANNEL *Chan )); #endif +GLOBAL bool Channel_AddInvite PARAMS((CHANNEL *c, const char *Mask, bool OnlyOnce )); +GLOBAL bool Channel_AddBan PARAMS((CHANNEL *c, const char *Mask )); +GLOBAL bool Channel_ShowBans PARAMS((CLIENT *client, CHANNEL *c)); +GLOBAL bool Channel_ShowInvites PARAMS((CLIENT *client, CHANNEL *c)); #endif - - /* -eof- */