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?