diff --git a/CHANGELOG.md b/CHANGELOG.md index 44e3e73e1..64a81ee1d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ - Minor: Added the ability to open an entire tab as a popup. (#3082) - Minor: Added optional parameter to /usercard command for opening a usercard in a different channel context. (#3172) - Minor: Added regex option to Nicknames. (#3146) +- Minor: Colorizing usernames on IRC, originally made for Mm2PL/dankerino (#3206) - Bugfix: Fixed colored usernames sometimes not working. (#3170) - Bugfix: Restored ability to send duplicate `/me` messages. (#3166) - Bugfix: Notifications for moderators about other moderators deleting messages can now be disabled. (#3121) diff --git a/src/providers/irc/IrcMessageBuilder.cpp b/src/providers/irc/IrcMessageBuilder.cpp index fab99afb1..574e2aca9 100644 --- a/src/providers/irc/IrcMessageBuilder.cpp +++ b/src/providers/irc/IrcMessageBuilder.cpp @@ -11,6 +11,7 @@ #include "singletons/Settings.hpp" #include "singletons/Theme.hpp" #include "singletons/WindowManager.hpp" +#include "util/Helpers.hpp" #include "util/IrcHelpers.hpp" #include "widgets/Window.hpp" @@ -36,6 +37,7 @@ MessagePtr IrcMessageBuilder::build() { // PARSE this->parse(); + this->usernameColor_ = getRandomColor(this->ircMessage->nick()); // PUSH ELEMENTS this->appendChannelName();