#define FlagClr(set,flag) ((set)->bits[FLAGSET_INDEX(flag)] &= ~FLAGSET_MASK(flag))
/** String containing valid user modes, in no particular order. */
-#define infousermodes "dioswkgx"
+#define infousermodes "diOoswkgx"
/** Operator privileges. */
enum Priv
PRIV_FORCE_OPMODE, /**< can hack modes on quarantined channels */
PRIV_FORCE_LOCAL_OPMODE, /**< can hack modes on quarantined local channels */
PRIV_APASS_OPMODE, /**< can hack modes +A/-A/+U/-U */
+ PRIV_UNLIMIT_FLOOD, /**< user won't get excess flooded */
PRIV_LAST_PRIV /**< number of privileges */
};
#define SNO_NOISY (SNO_SERVKILL|SNO_UNAUTH)
/** Test whether a privilege has been granted to a client. */
-#define HasPriv(cli, priv) FlagHas(cli_privs(cli), priv)
+#define HasPriv(cli, priv) FlagHas(client_get_privs(cli), priv)
/** Grant a privilege to a client. */
#define SetPriv(cli, priv) FlagSet(cli_privs(cli), priv)
/** Revoke a privilege from a client. */
extern void client_set_privs(struct Client *client, struct ConfItem *oper);
extern int client_report_privs(struct Client* to, struct Client* client);
+extern int client_get_privs(struct Client* client);
+
#endif /* INCLUDED_client_h */