PRIV_SEE_OPERS, /* display hidden opers */
PRIV_WIDE_GLINE, /* oper can set wider G-lines */
PRIV_LIST_CHAN, /* oper can list secret channels */
- PRIV_FORCE_OPMODE,
- PRIV_FORCE_LOCAL_OPMODE,
+ PRIV_FORCE_OPMODE, /* can hack modes on quarantined channels */
+ PRIV_FORCE_LOCAL_OPMODE, /* can hack modes on quarantined local channels */
PRIV_LAST_PRIV /* must be the same as the last priv */
};
FLAG_BURST, /* Server is receiving a net.burst */
FLAG_BURST_ACK, /* Server is waiting for eob ack */
FLAG_IPCHECK, /* Added or updated IPregistry data */
+ FLAG_IAUTHED, /* Got IAUTH response for user */
FLAG_LOCOP, /* Local operator -- SRB */
FLAG_SERVNOTICE, /* server notices such as kill */
FLAG_OPER, /* Operator */
struct Socket con_socket; /* socket descriptor for client */
struct Timer con_proc; /* process latent messages from client */
struct AuthRequest* con_auth; /* auth request for client */
+ struct IAuthRequest* con_iauth; /* iauth request for client */
};
#define CONNECTION_MAGIC 0x12f955f3
#define cli_socket(cli) ((cli)->cli_connect->con_socket)
#define cli_proc(cli) ((cli)->cli_connect->con_proc)
#define cli_auth(cli) ((cli)->cli_connect->con_auth)
+#define cli_iauth(cli) ((cli)->cli_connect->con_iauth)
#define con_verify(con) ((con)->con_magic == CONNECTION_MAGIC)
#define con_magic(con) ((con)->con_magic)
#define con_socket(con) ((con)->con_socket)
#define con_proc(con) ((con)->con_proc)
#define con_auth(con) ((con)->con_auth)
+#define con_iauth(con) ((con)->con_iauth)
#define STAT_CONNECTING 0x001 /* connecting to another server */
#define STAT_HANDSHAKE 0x002 /* pass - server sent */
#define IsDead(x) HasFlag(x, FLAG_DEADSOCKET)
#define IsDeaf(x) HasFlag(x, FLAG_DEAF)
#define IsIPChecked(x) HasFlag(x, FLAG_IPCHECK)
+#define IsIAuthed(x) HasFlag(x, FLAG_IAUTHED)
#define IsIdented(x) HasFlag(x, FLAG_GOTID)
#define IsInvisible(x) HasFlag(x, FLAG_INVISIBLE)
#define IsJunction(x) HasFlag(x, FLAG_JUNCTION)
#define SetDebug(x) SetFlag(x, FLAG_DEBUG)
#define SetGotId(x) SetFlag(x, FLAG_GOTID)
#define SetIPChecked(x) SetFlag(x, FLAG_IPCHECK)
+#define SetIAuthed(x) SetFlag(x, FLAG_IAUTHED)
#define SetInvisible(x) SetFlag(x, FLAG_INVISIBLE)
#define SetJunction(x) SetFlag(x, FLAG_JUNCTION)
#define SetLocOp(x) SetFlag(x, FLAG_LOCOP)