aboutsummaryrefslogtreecommitdiff
path: root/include/modules/cap.h
diff options
context:
space:
mode:
authorGravatar Sadie Powell2020-07-20 12:16:48 +0100
committerGravatar Sadie Powell2020-07-20 12:16:48 +0100
commit4e3d97546a5884b38a48303075a91c7485a6fae5 (patch)
treecff0d17e3243ed600e6a6b3c72a1041202262f6d /include/modules/cap.h
parentPascalize ExtensionItem::{get,set,unset}_raw. (diff)
Pascalize Cap::set and rename Cap::get to IsEnabled.
Diffstat (limited to 'include/modules/cap.h')
-rw-r--r--include/modules/cap.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/modules/cap.h b/include/modules/cap.h
index d5119b10f..ebcec651f 100644
--- a/include/modules/cap.h
+++ b/include/modules/cap.h
@@ -193,7 +193,7 @@ namespace Cap
* @param user User to check
* @return True if the user is using this capability, false otherwise
*/
- bool get(User* user) const
+ bool IsEnabled(User* user) const
{
if (!IsRegistered())
return false;
@@ -205,7 +205,7 @@ namespace Cap
* @param user User to turn the cap on/off for
* @param val True to turn the cap on, false to turn it off
*/
- void set(User* user, bool val)
+ void Set(User* user, bool val)
{
if (!IsRegistered())
return;
@@ -307,10 +307,10 @@ namespace Cap
* @param user User to check
* @return True if the user is using the referenced capability, false otherwise
*/
- bool get(LocalUser* user)
+ bool IsEnabled(LocalUser* user)
{
if (ref)
- return ref->get(user);
+ return ref->IsEnabled(user);
return false;
}
};