From ac2bb40eef9f9335e91fcb02265405f42af4572a Mon Sep 17 00:00:00 2001 From: Felanbird <41973452+Felanbird@users.noreply.github.com> Date: Sun, 12 Dec 2021 06:35:00 -0500 Subject: [PATCH] Move '/live' logs to its own subDirectory (#3394) Co-authored-by: pajlada --- CHANGELOG.md | 1 + src/singletons/helper/LoggingChannel.cpp | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e9e78abf1..024de95ff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -37,6 +37,7 @@ - Minor: Made join and part message have links to usercards. (#3358) - Minor: Show picked outcome in prediction badges. (#3357) - Minor: Add support for Emoji in IRC (#3354) +- Minor: Moved `/live` logs to its own subdirectory. (Logs from before this change will still be available in `Channels -> live`). (#3393) - Bugfix: Fix Split Input hotkeys not being available when input is hidden (#3362) - Bugfix: Fixed colored usernames sometimes not working. (#3170) - Bugfix: Restored ability to send duplicate `/me` messages. (#3166) diff --git a/src/singletons/helper/LoggingChannel.cpp b/src/singletons/helper/LoggingChannel.cpp index 112270ca7..43ca57746 100644 --- a/src/singletons/helper/LoggingChannel.cpp +++ b/src/singletons/helper/LoggingChannel.cpp @@ -24,6 +24,10 @@ LoggingChannel::LoggingChannel(const QString &_channelName) { this->subDirectory = "Mentions"; } + else if (channelName.startsWith("/live")) + { + this->subDirectory = "Live"; + } else { this->subDirectory =