-#define IsOper(x) ((x)->flags & FLAGS_OPER)
-#define IsLocOp(x) ((x)->flags & FLAGS_LOCOP)
-#define IsInvisible(x) ((x)->flags & FLAGS_INVISIBLE)
-#define IsDeaf(x) ((x)->flags & FLAGS_DEAF)
-#define IsChannelService(x) ((x)->flags & FLAGS_CHSERV)
-#define IsAnOper(x) ((x)->flags & (FLAGS_OPER|FLAGS_LOCOP))
-#define IsPrivileged(x) (IsAnOper(x) || IsServer(x))
-#define SendWallops(x) ((x)->flags & FLAGS_WALLOP)
-#define SendDebug(x) ((x)->flags & FLAGS_DEBUG)
-#define SendServNotice(x) ((x)->flags & FLAGS_SERVNOTICE)
-#define IsUnixSocket(x) ((x)->flags & FLAGS_UNIX)
-#define IsListening(x) ((x)->flags & FLAGS_LISTEN)
-#define DoAccess(x) ((x)->flags & FLAGS_CHKACCESS)
-#define IsLocal(x) ((x)->flags & FLAGS_LOCAL)
-#define IsDead(x) ((x)->flags & FLAGS_DEADSOCKET)
-#define IsJunction(x) ((x)->flags & FLAGS_JUNCTION)
-#define IsBurst(x) ((x)->flags & FLAGS_BURST)
-#define IsBurstAck(x) ((x)->flags & FLAGS_BURST_ACK)
-#define IsBurstOrBurstAck(x) ((x)->flags & (FLAGS_BURST|FLAGS_BURST_ACK))
-#define IsIPChecked(x) ((x)->flags & FLAGS_IPCHECK)
-
-#define SetOper(x) ((x)->flags |= FLAGS_OPER)
-#define SetLocOp(x) ((x)->flags |= FLAGS_LOCOP)
-#define SetInvisible(x) ((x)->flags |= FLAGS_INVISIBLE)
-#define SetWallops(x) ((x)->flags |= FLAGS_WALLOP)
-#define SetDebug(x) ((x)->flags |= FLAGS_DEBUG)
-#define SetUnixSock(x) ((x)->flags |= FLAGS_UNIX)
-#define SetDNS(x) ((x)->flags |= FLAGS_DOINGDNS)
-#define DoingDNS(x) ((x)->flags & FLAGS_DOINGDNS)
-#define SetAccess(x) ((x)->flags |= FLAGS_CHKACCESS)
-#define DoingAuth(x) ((x)->flags & FLAGS_AUTH)
-#define NoNewLine(x) ((x)->flags & FLAGS_NONL)
-#define DoPing(x) ((x)->flags & FLAGS_PING)
-#define SetAskedPing(x) ((x)->flags |= FLAGS_ASKEDPING)
-#define AskedPing(x) ((x)->flags & FLAGS_ASKEDPING)
-#define SetJunction(x) ((x)->flags |= FLAGS_JUNCTION)
-#define SetBurst(x) ((x)->flags |= FLAGS_BURST)
-#define SetBurstAck(x) ((x)->flags |= FLAGS_BURST_ACK)
-#define SetIPChecked(x) ((x)->flags |= FLAGS_IPCHECK)
-
-#define ClearOper(x) ((x)->flags &= ~FLAGS_OPER)
-#define ClearLocOp(x) ((x)->flags &= ~FLAGS_LOCOP)
-#define ClearInvisible(x) ((x)->flags &= ~FLAGS_INVISIBLE)
-#define ClearWallops(x) ((x)->flags &= ~FLAGS_WALLOP)
-#define ClearDebug(x) ((x)->flags &= ~FLAGS_DEBUG)
-#define ClearDNS(x) ((x)->flags &= ~FLAGS_DOINGDNS)
-#define ClearAuth(x) ((x)->flags &= ~FLAGS_AUTH)
-#define ClearAccess(x) ((x)->flags &= ~FLAGS_CHKACCESS)
-#define ClearPing(x) ((x)->flags &= ~FLAGS_PING)
-#define ClearAskedPing(x) ((x)->flags &= ~FLAGS_ASKEDPING)
-#define ClearBurst(x) ((x)->flags &= ~FLAGS_BURST)
-#define ClearBurstAck(x) ((x)->flags &= ~FLAGS_BURST_ACK)
-
-/* used for async dns values */
-
-#define ASYNC_NONE 0
-#define ASYNC_CLIENT 1
-#define ASYNC_CONNECT 2
-#define ASYNC_CONF 3
-#define ASYNC_PING 4
-
-/* server notice stuff */
-
-#define SNO_ADD 1
-#define SNO_DEL 2
-#define SNO_SET 3
- /* DON'T CHANGE THESE VALUES ! */
- /* THE CLIENTS DEPEND ON IT ! */
-#define SNO_OLDSNO 0x1 /* unsorted old messages */
-#define SNO_SERVKILL 0x2 /* server kills (nick collisions) */
-#define SNO_OPERKILL 0x4 /* oper kills */
-#define SNO_HACK2 0x8 /* desyncs */
-#define SNO_HACK3 0x10 /* temporary desyncs */
-#define SNO_UNAUTH 0x20 /* unauthorized connections */
-#define SNO_TCPCOMMON 0x40 /* common TCP or socket errors */
-#define SNO_TOOMANY 0x80 /* too many connections */
-#define SNO_HACK4 0x100 /* Uworld actions on channels */
-#define SNO_GLINE 0x200 /* glines */
-#define SNO_NETWORK 0x400 /* net join/break, etc */
-#define SNO_IPMISMATCH 0x800 /* IP mismatches */
-#define SNO_THROTTLE 0x1000 /* host throttle add/remove notices */
-#define SNO_OLDREALOP 0x2000 /* old oper-only messages */
-#define SNO_CONNEXIT 0x4000 /* client connect/exit (ugh) */
-
-#define SNO_ALL 0x7fff /* Don't make it larger then significant,
- * that looks nicer */
-
-#define SNO_USER (SNO_ALL & ~SNO_OPER)
-
-#define SNO_DEFAULT (SNO_NETWORK|SNO_OPERKILL|SNO_GLINE)
-#define SNO_OPERDEFAULT (SNO_DEFAULT|SNO_HACK2|SNO_HACK4|SNO_THROTTLE|SNO_OLDSNO)
-#define SNO_OPER (SNO_CONNEXIT|SNO_OLDREALOP)
-#define SNO_NOISY (SNO_SERVKILL|SNO_UNAUTH)