summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2014-01-19 17:02:50 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2014-01-19 17:02:50 +0000
commit70345c0f442726f24040af4eefc23f390fff7c58 (patch)
tree8117e87f39b4d7a095a094ddcfa378982b7e66d2 /include
parentaeb0b42a4f92ced807c83364ff4f36712b7b3d89 (diff)
- s_serv.h, send.h, send.c: made some things use an enum
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@2869 82007160-df01-0410-b94d-b575c5fd34c7
Diffstat (limited to 'include')
-rw-r--r--include/s_serv.h9
-rw-r--r--include/send.h31
2 files changed, 25 insertions, 15 deletions
diff --git a/include/s_serv.h b/include/s_serv.h
index 00cd972..dbd1c58 100644
--- a/include/s_serv.h
+++ b/include/s_serv.h
@@ -80,9 +80,12 @@ struct Capability
/*
* return values for hunt_server()
*/
-#define HUNTED_NOSUCH (-1) /* if the hunted server is not found */
-#define HUNTED_ISME 0 /* if this server should execute the command */
-#define HUNTED_PASS 1 /* if message passed onwards successfully */
+enum
+{
+ HUNTED_NOSUCH = -1, /* If the hunted server is not found */
+ HUNTED_ISME = 0, /* If this server should execute the command */
+ HUNTED_PASS = 1 /* If message passed onwards successfully */
+};
extern int valid_servname(const char *);
extern int check_server(const char *, struct Client *);
diff --git a/include/send.h b/include/send.h
index fdb98ad..e33212f 100644
--- a/include/send.h
+++ b/include/send.h
@@ -29,27 +29,34 @@
#include "fdlist.h"
+#define NOCAPS 0 /* no caps */
+
#define ALL_MEMBERS 0
#define NON_CHANOPS 1
#define ONLY_CHANOPS_VOICED 2
#define ONLY_CHANOPS 3
#define ONLY_SERVERS 4 /* for channel_mode.c */
-#define L_ALL 0
-#define L_OPER 1
-#define L_ADMIN 2
-
-#define SEND_NOTICE 1
-#define SEND_GLOBAL 2
-#define SEND_LOCOPS 3
+enum
+{
+ L_ALL = 0,
+ L_OPER = 1,
+ L_ADMIN = 2
+};
-#define NOCAPS 0 /* no caps */
-#define NOFLAGS 0 /* no flags */
+enum
+{
+ SEND_NOTICE = 1,
+ SEND_GLOBAL = 2,
+ SEND_LOCOPS = 3
+};
/* used when sending to #mask or $mask */
-#define MATCH_SERVER 1
-#define MATCH_HOST 2
-
+enum
+{
+ MATCH_SERVER = 1,
+ MATCH_HOST = 2
+};
/*
* struct decls