mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Fix wrong default value on doHighlight
Add debug message for when a highlight is triggered for debugging purposes
This commit is contained in:
parent
417c4028a0
commit
950a84ec50
|
@ -381,12 +381,14 @@ void TwitchMessageBuilder::parseHighlights()
|
|||
activeHighlights.emplace_back(it.key(), properties.first, properties.second);
|
||||
}
|
||||
|
||||
bool doHighlight = true;
|
||||
bool doHighlight = false;
|
||||
bool playSound = false;
|
||||
bool doAlert = false;
|
||||
|
||||
for (const Highlight &highlight : activeHighlights) {
|
||||
if (this->originalMessage.contains(highlight.target, Qt::CaseInsensitive)) {
|
||||
qDebug() << "Highlight because " << this->originalMessage << " contains "
|
||||
<< highlight.target;
|
||||
doHighlight = true;
|
||||
|
||||
if (highlight.sound) {
|
||||
|
|
Loading…
Reference in a new issue