int mems;
};
-typedef void (*ChannelModeFunc)(struct Client *source_p, struct Channel *chptr,
+typedef void ChannelModeFunc(struct Client *source_p, struct Channel *chptr,
int alevel, const char *arg, int *errors, int dir, char c, long mode_type);
enum chm_flags
struct ChannelMode
{
- ChannelModeFunc set_func;
+ ChannelModeFunc *set_func;
long mode_type;
enum chm_flags flags;
};
#define MODE_QUERY 0
#define MODE_ADD 1
#define MODE_DEL -1
+#define MODE_OP_QUERY 2
#define SecretChannel(x) ((x) && ((x)->mode.mode & MODE_SECRET))
#define HiddenChannel(x) ((x) && ((x)->mode.mode & MODE_PRIVATE))