Merge pull request #1049 from apa420/apa-pubsub-fix

Pubsub messages now go into the correct channel
This commit is contained in:
pajlada 2019-05-01 22:22:03 +02:00 committed by GitHub
commit 216b21e0c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -268,7 +268,8 @@ std::shared_ptr<Channel> TwitchServer::getChannelOrEmptyByID(
if (!twitchChannel)
continue;
if (twitchChannel->roomId() == channelId)
if (twitchChannel->roomId() == channelId &&
twitchChannel->getName().split(":").size() < 3)
{
return twitchChannel;
}