diff --git a/include/channel.h b/include/channel.h index 032c0cda..66e5ba99 100644 --- a/include/channel.h +++ b/include/channel.h @@ -60,7 +60,7 @@ struct Channel rb_dlink_list members; /* channel members */ rb_dlink_list locmembers; /* local channel members */ - rb_dlink_list invites; +rb_dlink_list invites; rb_dlink_list banlist; rb_dlink_list exceptlist; rb_dlink_list invexlist; @@ -145,8 +145,9 @@ typedef int (*ExtbanFunc)(const char *data, struct Client *client_p, /* channel status flags */ #define CHFL_PEON 0x0000 /* normal member of channel */ -#define CHFL_CHANOP 0x0001 /* Channel operator */ -#define CHFL_VOICE 0x0002 /* the power to speak */ +#define CHFL_VOICE 0x0001 /* the power to speak */ +#define CHFL_CHANOP 0x0002 /* Channel operator */ + #define CHFL_BANNED 0x0008 /* cached as banned */ #define CHFL_QUIETED 0x0010 /* cached as being +q victim */ #define ONLY_SERVERS 0x0020 @@ -276,5 +277,6 @@ extern int match_extban(const char *banstr, struct Client *client_p, struct Chan extern int valid_extban(const char *banstr, struct Client *client_p, struct Channel *chptr, long mode_type); const char * get_extban_string(void); +extern int get_channel_access(struct Client *source_p, struct membership *msptr); #endif /* INCLUDED_channel_h */