various small fixes & example dev config
[ircu2.10.12-pk.git] / include / client.h
index 7ad4692816bdc1d57fcce84ad71a31ff46be392b..66f9f9d3fc1badb55c162a8fa60776dc9e41df40 100644 (file)
@@ -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 */