Adds VIP rate limit support

Closes #875
This commit is contained in:
Rasmus Karlsson
2019-04-13 15:26:47 +02:00
parent ef81029374
commit 13475332fb
6 changed files with 98 additions and 20 deletions
+5
View File
@@ -239,6 +239,11 @@ bool Channel::hasModRights() const
return this->isMod() || this->isBroadcaster();
}
bool Channel::hasHighRateLimit() const
{
return this->isMod() || this->isBroadcaster();
}
bool Channel::isLive() const
{
return false;
+1
View File
@@ -70,6 +70,7 @@ public:
virtual bool isMod() const;
virtual bool isBroadcaster() const;
virtual bool hasModRights() const;
virtual bool hasHighRateLimit() const;
virtual bool isLive() const;
virtual bool shouldIgnoreHighlights() const;