diff options
author | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2014-01-21 20:05:51 +0000 |
---|---|---|
committer | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2014-01-21 20:05:51 +0000 |
commit | 30777ef30a1542291c8b8d2646b8760345ae6caf (patch) | |
tree | d8800fab7138135a0ef44b61e5e6a8d8058b89aa /include | |
parent | 6d5f46d9f587ab410fb95a1f12df5b399ca7adef (diff) |
- channel_mode.h: made some things use an enum. Removed unused header include.
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@2897 82007160-df01-0410-b94d-b575c5fd34c7
Diffstat (limited to 'include')
-rw-r--r-- | include/channel_mode.h | 35 |
1 files changed, 21 insertions, 14 deletions
diff --git a/include/channel_mode.h b/include/channel_mode.h index 7e52759..164a1e1 100644 --- a/include/channel_mode.h +++ b/include/channel_mode.h @@ -27,17 +27,33 @@ #ifndef INCLUDED_channel_mode_h #define INCLUDED_channel_mode_h -#include "ircd_defs.h" /* buffer sizes */ - #define MODEBUFLEN 200 /* Maximum mode changes allowed per client, per server is different */ #define MAXMODEPARAMS 4 +enum +{ + MODE_QUERY = 0, + MODE_ADD = 1, + MODE_DEL = -1 +}; + +enum +{ + CHACCESS_NOTONCHAN = -1, + CHACCESS_PEON = 0, + CHACCESS_HALFOP = 1, + CHACCESS_CHANOP = 2 +}; + /* can_send results */ -#define CAN_SEND_NO 0 -#define CAN_SEND_NONOP -1 -#define CAN_SEND_OPV -2 +enum +{ + CAN_SEND_NO = 0, + CAN_SEND_NONOP = -1, + CAN_SEND_OPV = -2 +}; /* Channel related flags */ @@ -67,15 +83,6 @@ #define CHFL_BAN_CHECKED 0x0080 #define CHFL_BAN_SILENCED 0x0100 -#define MODE_QUERY 0 -#define MODE_ADD 1 -#define MODE_DEL -1 - -#define CHACCESS_NOTONCHAN -1 -#define CHACCESS_PEON 0 -#define CHACCESS_HALFOP 1 -#define CHACCESS_CHANOP 2 - /* name invisible */ #define SecretChannel(x) (((x)->mode.mode & MODE_SECRET)) #define PubChannel(x) (!SecretChannel(x)) |