diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/s_serv.h | 9 | ||||
-rw-r--r-- | include/send.h | 31 |
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 |