diff options
author | red-001 <red-001@outlook.ie> | 2017-06-07 08:09:06 +0100 |
---|---|---|
committer | Loïc Blot <nerzhul@users.noreply.github.com> | 2017-06-07 09:09:06 +0200 |
commit | c91a8c7061c83a33cca929859ea811afb985ac0a (patch) | |
tree | 28d90cc8f57d35eedb2d25ffd6456ffddb80adf1 /src/client.h | |
parent | 6c558744179b52607d552d28bf6cc6a4e49a2a14 (diff) | |
download | minetest-c91a8c7061c83a33cca929859ea811afb985ac0a.tar.gz minetest-c91a8c7061c83a33cca929859ea811afb985ac0a.tar.bz2 minetest-c91a8c7061c83a33cca929859ea811afb985ac0a.zip |
[CSM] Add function to get player privileges (#5933)
* [CSM] Add function to get player privileges + move related help functions to common
* Added @Zeno- const
Diffstat (limited to 'src/client.h')
-rw-r--r-- | src/client.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/client.h b/src/client.h index 149fdfe57..9aec0d061 100644 --- a/src/client.h +++ b/src/client.h @@ -416,6 +416,9 @@ public: bool checkPrivilege(const std::string &priv) const { return (m_privileges.count(priv) != 0); } + const std::unordered_set<std::string> &getPrivilegeList() const + { return m_privileges; } + bool getChatMessage(std::wstring &message); void typeChatMessage(const std::wstring& message); |