From c91a8c7061c83a33cca929859ea811afb985ac0a Mon Sep 17 00:00:00 2001 From: red-001 Date: Wed, 7 Jun 2017 08:09:06 +0100 Subject: [CSM] Add function to get player privileges (#5933) * [CSM] Add function to get player privileges + move related help functions to common * Added @Zeno- const --- src/client.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/client.h') 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 &getPrivilegeList() const + { return m_privileges; } + bool getChatMessage(std::wstring &message); void typeChatMessage(const std::wstring& message); -- cgit v1.2.3