Change logic class OnPrtcChatMessage
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user