Pubsub messages now go into the correct channel

This commit is contained in:
apa420 2019-05-01 21:46:53 +02:00
parent 34f820be18
commit c60b717b98

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;
}