From ee674fd68885fe5edcd66bb4096525847a35d31a Mon Sep 17 00:00:00 2001 From: Jon Date: Mon, 20 Jan 2025 09:07:19 +0000 Subject: [PATCH] Fixed bug showing chat from ignored players in explorable areas --- GWToolboxdll/Modules/ChatFilter.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/GWToolboxdll/Modules/ChatFilter.cpp b/GWToolboxdll/Modules/ChatFilter.cpp index 94f09fd6a..06355a4de 100644 --- a/GWToolboxdll/Modules/ChatFilter.cpp +++ b/GWToolboxdll/Modules/ChatFilter.cpp @@ -19,6 +19,7 @@ #include #include #include +#include #include #include @@ -335,7 +336,8 @@ namespace { bool ShouldIgnoreBySender(const std::wstring& sender) { - return GW::FriendListMgr::GetFriend(nullptr, sender.c_str(), GW::FriendType::Ignore) != nullptr; + const auto sanitised = TextUtils::SanitizePlayerName(sender); + return FriendListWindow::GetIsPlayerIgnored(sanitised) || GW::FriendListMgr::GetFriend(nullptr, sanitised.c_str(), GW::FriendType::Ignore) != nullptr; } // Should this message be ignored by encoded string?