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_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(client_get_privs(cli), priv)
+#define HasPriv(cli, priv) client_get_priv(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);
+extern int client_get_priv(struct Client* client, enum Priv priv);
#endif /* INCLUDED_client_h */