X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=include%2Fclient.h;h=32a559acf3fd9a6e021f0a917c518043dc0c9a03;hb=d13c7b5efd15eec19cbd08d00a3f65da03049868;hp=f93a3ee425e3032a6de1a7df24f1410a4241168b;hpb=fa78a87f4d4bf4411effdb4e3ba1072625294a9a;p=ircu2.10.12-pk.git diff --git a/include/client.h b/include/client.h index f93a3ee..32a559a 100644 --- a/include/client.h +++ b/include/client.h @@ -126,6 +126,7 @@ 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 */ }; @@ -715,7 +716,7 @@ struct Client { #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. */ @@ -738,5 +739,7 @@ extern void client_add_sendq(struct Connection* con, 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 */