Fix wrong default value on doHighlight

Add debug message for when a highlight is triggered for debugging
purposes
This commit is contained in:
Rasmus Karlsson 2017-07-31 11:08:32 +02:00
parent 417c4028a0
commit 950a84ec50

View file

@ -381,12 +381,14 @@ void TwitchMessageBuilder::parseHighlights()
activeHighlights.emplace_back(it.key(), properties.first, properties.second); activeHighlights.emplace_back(it.key(), properties.first, properties.second);
} }
bool doHighlight = true; bool doHighlight = false;
bool playSound = false; bool playSound = false;
bool doAlert = false; bool doAlert = false;
for (const Highlight &highlight : activeHighlights) { for (const Highlight &highlight : activeHighlights) {
if (this->originalMessage.contains(highlight.target, Qt::CaseInsensitive)) { if (this->originalMessage.contains(highlight.target, Qt::CaseInsensitive)) {
qDebug() << "Highlight because " << this->originalMessage << " contains "
<< highlight.target;
doHighlight = true; doHighlight = true;
if (highlight.sound) { if (highlight.sound) {