Prevent non player messages from being converted

This commit is contained in:
Infi
2024-05-11 07:57:41 +02:00
parent 5e622bc465
commit e7e4c0e221
2 changed files with 45 additions and 1 deletions
+2 -1
View File
@@ -192,10 +192,11 @@ internal class Message
continue;
}
var checkForEmotes = Code.IsPlayerMessage();
var builder = new StringBuilder();
foreach (var word in text.Content.Split(" "))
{
if (Plugin.Config.ShowEmotes && EmoteCache.Exists(word) && !Plugin.Config.BlockedEmotes.Contains(word))
if (checkForEmotes && Plugin.Config.ShowEmotes && EmoteCache.Exists(word) && !Plugin.Config.BlockedEmotes.Contains(word))
{
// We add all the previous collected text parts
AddContentAfterURLCheck(builder.ToString(), text, chunk);