Add a switch for follower only mode (#1241)

* Add a switch follower only mode

* Format the code
This commit is contained in:
Mm2PL
2019-08-25 19:08:04 +02:00
committed by fourtf
parent def839bef9
commit 1a25c5afe8
3 changed files with 46 additions and 2 deletions
@@ -196,6 +196,10 @@ void IrcMessageHandler::handleRoomStateMessage(Communi::IrcMessage *message)
{
roomModes.broadcasterLang = it.value().toString();
}
if ((it = tags.find("followers-only")) != tags.end())
{
roomModes.followerOnly = it.value().toInt();
}
twitchChannel->setRoomModes(roomModes);
}
+1 -1
View File
@@ -49,7 +49,7 @@ public:
bool submode = false;
bool r9k = false;
bool emoteOnly = false;
// int folowerOnly = 0;
int followerOnly = -1;
int slowMode = 0;
QString broadcasterLang;
};