Changed how the channel live status is stored

This commit is contained in:
Rasmus Karlsson
2018-03-30 15:05:33 +02:00
parent 1b9fa36e06
commit 1cac80c8ba
4 changed files with 65 additions and 28 deletions
+3 -1
View File
@@ -112,8 +112,10 @@ QString CommandManager::execCommand(const QString &text, ChannelPtr channel, boo
if (!dryRun && twitchChannel != nullptr) {
if (commandName == "/uptime") {
const auto &streamStatus = twitchChannel->GetStreamStatus();
QString messageText =
twitchChannel->isLive ? twitchChannel->streamUptime : "Channel is not live.";
streamStatus.live ? streamStatus.uptime : "Channel is not live.";
channel->addMessage(messages::Message::createSystemMessage(messageText));