From bfb024b1e702b5f30ec620ca38028e2fc17764ca Mon Sep 17 00:00:00 2001 From: hicupalot <53972884+hicupalot@users.noreply.github.com> Date: Thu, 7 Apr 2022 13:15:41 +0100 Subject: [PATCH] Added quotation marks in the permitted/blocked Automod messages (#3654) Co-authored-by: Felanbird <41973452+Felanbird@users.noreply.github.com> --- CHANGELOG.md | 1 + src/messages/MessageBuilder.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e03311bc1..5bc5c5bf2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## Unversioned +- Minor: Added quotation marks in the permitted/blocked Automod messages for clarity. (#3654) - Bugfix: Fixed live notifications for usernames containing uppercase characters. (#3646) ## 2.3.5 diff --git a/src/messages/MessageBuilder.cpp b/src/messages/MessageBuilder.cpp index 208db2974..de1e6812d 100644 --- a/src/messages/MessageBuilder.cpp +++ b/src/messages/MessageBuilder.cpp @@ -403,25 +403,25 @@ MessageBuilder::MessageBuilder(const AutomodUserAction &action) switch (action.type) { case AutomodUserAction::AddPermitted: { - text = QString("%1 added %2 as a permitted term on AutoMod.") + text = QString("%1 added \"%2\" as a permitted term on AutoMod.") .arg(action.source.login, action.message); } break; case AutomodUserAction::AddBlocked: { - text = QString("%1 added %2 as a blocked term on AutoMod.") + text = QString("%1 added \"%2\" as a blocked term on AutoMod.") .arg(action.source.login, action.message); } break; case AutomodUserAction::RemovePermitted: { - text = QString("%1 removed %2 as a permitted term on AutoMod.") + text = QString("%1 removed \"%2\" as a permitted term on AutoMod.") .arg(action.source.login, action.message); } break; case AutomodUserAction::RemoveBlocked: { - text = QString("%1 removed %2 as a blocked term on AutoMod.") + text = QString("%1 removed \"%2\" as a blocked term on AutoMod.") .arg(action.source.login, action.message); } break;