From 73fb6340a115264b99f98e45c6086fcfc3aedc69 Mon Sep 17 00:00:00 2001 From: michael Date: Sat, 1 Mar 2014 19:45:10 +0000 Subject: - conf.h: made some more constants use an enum git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@3094 82007160-df01-0410-b94d-b575c5fd34c7 --- include/conf.h | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/include/conf.h b/include/conf.h index 583444c..6ec4dcd 100644 --- a/include/conf.h +++ b/include/conf.h @@ -121,6 +121,15 @@ enum maskitem_type CONF_OPER = 1 << 12, }; +enum +{ + NOT_AUTHORIZED = -1, + I_LINE_FULL = -2, + TOO_MANY = -3, + BANNED_CLIENT = -4, + TOO_FAST = -5 +}; + struct conf_parser_context { unsigned int boot; @@ -384,12 +393,6 @@ extern int valid_comment(struct Client *, char *, int); extern time_t valid_tkline(const char *, const int); extern int match_conf_password(const char *, const struct MaskItem *); -#define NOT_AUTHORIZED (-1) -#define I_LINE_FULL (-2) -#define TOO_MANY (-3) -#define BANNED_CLIENT (-4) -#define TOO_FAST (-5) - #define CLEANUP_TKLINES_TIME 60 extern void cluster_a_line(struct Client *, const char *, int, int, const char *,...); -- cgit