From bc0b7e4d99e50e0a1784bc400d58a6bed96c8c8c Mon Sep 17 00:00:00 2001 From: pajlada Date: Sun, 7 Nov 2021 20:58:22 +0100 Subject: [PATCH] Fix IRC actions not being colored properly (#3341) --- CHANGELOG.md | 1 + src/providers/irc/IrcMessageBuilder.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3905d939..c70dd05b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -50,6 +50,7 @@ - Bugfix: Fixed `First Message` scrollbar highlights not being disabled. (#3325) - Bugfix: Fixed the reconnection backoff accidentally resetting when thrown out of certain IRC servers. (#3328) - Bugfix: Fixed underlying text from disabled emotes not being colorized properly. (#3333) +- Bugfix: Fixed IRC ACTION messages (/me) not being colorized properly. (#3341) - Dev: Add GitHub action to test builds without precompiled headers enabled. (#3327) - Dev: Renamed CMake's build option `USE_SYSTEM_QT5KEYCHAIN` to `USE_SYSTEM_QTKEYCHAIN`. (#3103) - Dev: Add benchmarks that can be compiled with the `BUILD_BENCHMARKS` CMake flag. Off by default. (#3038) diff --git a/src/providers/irc/IrcMessageBuilder.cpp b/src/providers/irc/IrcMessageBuilder.cpp index 1c37f362..aa862d4a 100644 --- a/src/providers/irc/IrcMessageBuilder.cpp +++ b/src/providers/irc/IrcMessageBuilder.cpp @@ -77,7 +77,7 @@ MessagePtr IrcMessageBuilder::build() void IrcMessageBuilder::addWords(const QStringList &words) { - MessageColor defaultColorType = MessageColor::Text; + MessageColor defaultColorType = this->textColor_; auto defaultColor = defaultColorType.getColor(*getApp()->themes); QColor textColor = defaultColor; int fg = -1;