summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2014-03-01 19:45:10 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2014-03-01 19:45:10 +0000
commit73fb6340a115264b99f98e45c6086fcfc3aedc69 (patch)
treeef09ef8db79b6138a5beb2f2d554282248a8020b /include
parent1f3ce6b6c3b7478b444f0cb8f4ee5ac8d9a6dc70 (diff)
- 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
Diffstat (limited to 'include')
-rw-r--r--include/conf.h15
1 files 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 *,...);