]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/ngircd/channel.h
Support individual channel keys for pre-defined channels.
[ngircd-alex.git] / src / ngircd / channel.h
index 56b124049592124d7a094cd3ebe38fac0fc3257d..3aa1853dd1b344beb4d0117a79e65b632445ec74 100644 (file)
@@ -37,6 +37,7 @@ typedef struct _CHANNEL
        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 */
+       FILE *keyfile;                  /* handle of the channel key file */
 } CHANNEL;
 
 typedef struct _CLIENT2CHAN
@@ -127,6 +128,9 @@ GLOBAL bool Channel_ShowInvites PARAMS((CLIENT *client, CHANNEL *c));
 
 GLOBAL void Channel_LogServer PARAMS((char *msg));
 
+GLOBAL bool Channel_CheckKey PARAMS((CHANNEL *Chan, CLIENT *Client,
+                                    const char *Key));
+
 #define Channel_IsLocal(c) (Channel_Name(c)[0] == '&')