X-Git-Url: http://git.pk910.de/?p=ircu2.10.12-pk.git;a=blobdiff_plain;f=include%2Fclient.h;h=66f9f9d3fc1badb55c162a8fa60776dc9e41df40;hp=7ad4692816bdc1d57fcce84ad71a31ff46be392b;hb=3e86180fb32d5eab15c761b75ba3d4520ef23bac;hpb=c13fbd5384338be6c99d529db9b6ba787afcb1c0 diff --git a/include/client.h b/include/client.h index 7ad4692..66f9f9d 100644 --- a/include/client.h +++ b/include/client.h @@ -127,7 +127,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_UNLIMIT_FLOOD, /**< user won't get excess flooded */ PRIV_LAST_PRIV /**< number of privileges */ }; @@ -728,7 +728,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(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. */ @@ -751,7 +751,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); +extern int client_get_priv(struct Client* client, enum Priv priv); #endif /* INCLUDED_client_h */