chatfilter: fix filtering self and clan messages with chat icons

This was incorrectly filtering self/clan messages from players with chat
icons due to not stripping the icon tag before matching the player name.
This commit is contained in:
Adam
2020-11-27 15:15:52 -05:00
parent ba25de4bd1
commit 23b7a65c29
2 changed files with 16 additions and 1 deletions

View File

@@ -173,7 +173,7 @@ public class ChatFilterPlugin extends Plugin
case PRIVATECHAT:
case MODPRIVATECHAT:
case FRIENDSCHAT:
if (shouldFilterPlayerMessage(name))
if (shouldFilterPlayerMessage(Text.removeTags(name)))
{
message = censorMessage(name, message);
blockMessage = message == null;