fix(Core/Chat): Channel exploit (#2298)

This commit is contained in:
WiZZy
2019-10-05 14:40:38 +03:00
committed by Francesco Borzì
parent 9e2bd353d2
commit a8a27c2747
2 changed files with 34 additions and 4 deletions

View File

@@ -150,6 +150,8 @@ class Channel
if (state) flags |= MEMBER_FLAG_OWNER;
else flags &= ~MEMBER_FLAG_OWNER;
}
bool IsOwnerGM() const { return _gmStatus; }
void SetOwnerGM(bool on) { _gmStatus = on; }
bool IsModerator() const { return flags & MEMBER_FLAG_MODERATOR; }
void SetModerator(bool state)
{
@@ -172,6 +174,8 @@ class Channel
else
return false;
}
private:
bool _gmStatus = false;
};
public:
@@ -315,6 +319,7 @@ class Channel
bool _announce;
bool _ownership;
bool _IsSaved;
bool _isOwnerGM;
uint8 _flags;
uint32 _channelId;
uint32 _channelDBId;