diff options
author | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2012-11-04 17:09:47 +0000 |
---|---|---|
committer | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2012-11-04 17:09:47 +0000 |
commit | 7d878fff67e99f144aa1df6c43c5ac8fe957bee6 (patch) | |
tree | 9864755e4a8346eafa07ad4e393c69b432ae181c /include | |
parent | b718094b79a1f3619a2269e67f9a492105c2cf70 (diff) |
- Cleanup configuration subsystem
- Fixed broken CIDR support for /challenge
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/trunk@1636 82007160-df01-0410-b94d-b575c5fd34c7
Diffstat (limited to 'include')
-rw-r--r-- | include/conf.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/conf.h b/include/conf.h index 81648d4..ac17aa2 100644 --- a/include/conf.h +++ b/include/conf.h @@ -90,7 +90,6 @@ struct MaskItem enum maskitem_type type; unsigned int dns_failed; unsigned int dns_pending; - unsigned int status; /* If CONF_ILLEGAL, delete when no clients */ unsigned int flags; unsigned int modes; unsigned int port; @@ -132,9 +131,9 @@ struct CidrItem }; -#define IsConfOperator(x) ((x)->type & CONF_OPER) +#define IsConfOperator(x) ((x)->type == CONF_OPER) #define IsConfKill(x) ((x)->type == CONF_KLINE) -#define IsConfClient(x) ((x)->type & CONF_CLIENT) +#define IsConfClient(x) ((x)->type == CONF_CLIENT) #define IsConfGline(x) ((x)->type == CONF_GLINE) /* MaskItem->flags */ @@ -363,7 +362,6 @@ extern int get_conf_ping(const struct MaskItem *, int *); extern void detach_conf(struct Client *, enum maskitem_type); extern struct MaskItem *find_conf_name(dlink_list *, const char *, enum maskitem_type); -extern struct MaskItem *find_conf_exact(enum maskitem_type, const char *, const char *, const char *); extern struct MaskItem *find_kill(struct Client *); extern struct MaskItem *find_gline(struct Client *); extern int conf_connect_allowed(struct irc_ssaddr *, int); |