Skip to content

Commit

Permalink
Fixed bug showing chat from ignored players in explorable areas
Browse files Browse the repository at this point in the history
  • Loading branch information
3vcloud committed Jan 20, 2025
1 parent 6363ed6 commit ee674fd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion GWToolboxdll/Modules/ChatFilter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include <Modules/Resources.h>
#include <Modules/ChatFilter.h>
#include <Utils/ToolboxUtils.h>
#include <Windows/FriendListWindow.h>

#include <GWToolbox.h>
#include <Utils/TextUtils.h>
Expand Down Expand Up @@ -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?
Expand Down

0 comments on commit ee674fd

Please sign in to comment.