]> arthur.barton.de Git - ngircd.git/blobdiff - src/ngircd/channel.h
add and use Channel_IsModeless()
[ngircd.git] / src / ngircd / channel.h
index 56b124049592124d7a094cd3ebe38fac0fc3257d..b41cced2a26355519f0770560143bc99c31788c6 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 */
+       array keyfile;                  /* Name of the channel key file */
 } CHANNEL;
 
 typedef struct _CLIENT2CHAN
@@ -127,8 +128,11 @@ GLOBAL bool Channel_ShowInvites PARAMS((CLIENT *client, CHANNEL *c));
 
 GLOBAL void Channel_LogServer PARAMS((char *msg));
 
-#define Channel_IsLocal(c) (Channel_Name(c)[0] == '&')
+GLOBAL bool Channel_CheckKey PARAMS((CHANNEL *Chan, CLIENT *Client,
+                                    const char *Key));
 
+#define Channel_IsLocal(c) (Channel_Name(c)[0] == '&')
+#define Channel_IsModeless(c) (Channel_Name(c)[0] == '+')
 
 #endif