added room mode selector for mods again

This commit is contained in:
fourtf
2018-07-04 19:43:41 +02:00
parent e9a112f8b3
commit 14f125ff87
9 changed files with 148 additions and 97 deletions
-6
View File
@@ -197,12 +197,6 @@ bool TwitchChannel::isBroadcaster() const
return this->name == app->accounts->twitch.getCurrent()->getUserName();
}
bool TwitchChannel::hasModRights()
{
// fourtf: check if staff
return this->isMod() || this->isBroadcaster();
}
void TwitchChannel::addRecentChatter(const std::shared_ptr<Message> &message)
{
assert(!message->loginName.isEmpty());
+2 -3
View File
@@ -54,10 +54,9 @@ public:
bool canSendMessage() const override;
void sendMessage(const QString &message) override;
bool isMod() const override;
virtual bool isMod() const override;
void setMod(bool value);
bool isBroadcaster() const override;
bool hasModRights();
virtual bool isBroadcaster() const override;
void addRecentChatter(const std::shared_ptr<Message> &message) final;
void addJoinedUser(const QString &user);