diff --git a/Assets/PerfectWorld/Scripts/Network/CSNetwork/GameSession.cs b/Assets/PerfectWorld/Scripts/Network/CSNetwork/GameSession.cs index 9829b93d88..c14d2c52af 100644 --- a/Assets/PerfectWorld/Scripts/Network/CSNetwork/GameSession.cs +++ b/Assets/PerfectWorld/Scripts/Network/CSNetwork/GameSession.cs @@ -1515,7 +1515,26 @@ namespace CSNetwork private void OnPrtcChatMessage(Protocol pProtocol, bool bCalledagain) { + CECGameUIMan pGameUI = EC_Game.GetGameRun().GetUIManager().GetInGameUIMan(); + chatmessage p = (chatmessage)pProtocol; + var channel = (ChatChannel)p.Channel; + + int levelBlock = EC_Game.GetConfigs().GetBlackListSettings().levelBlock; + + if (p.Srclevel > 0 && p.Srclevel < levelBlock) + { + + if (channel is ChatChannel.GP_CHAT_LOCAL + or ChatChannel.GP_CHAT_WHISPER + or ChatChannel.GP_CHAT_TRADE) + { + if (!EC_Game.GetGameRun().GetHostPlayer().IsOmitBlocking(p.Srcroleid)) + { + + } + } + } string strTemp = System.Text.Encoding.Unicode.GetString(p.Msg.ToArray(), 0, p.Msg.Length);