Fix wrong default value on doHighlight
Add debug message for when a highlight is triggered for debugging purposes
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user