League-of-Foundry-Developers / fvtt-module-theatre

GNU General Public License v3.0
30 stars 39 forks source link

Fix Polyglot support breaking emotes #138

Closed VilcsiTH closed 1 year ago

VilcsiTH commented 1 year ago

(Let's try this again, after I woke up realizing I merged the master branch instead of the commit.)

With the introduction of Polyglot support, emotes were broken, because Polyglot never assigns those messages a flag. Emotes are never supposed to be in another language, after all.

This small fix checks if the message has the polyglot flag. If it doesn't, we shouldn't bother with processing languages and scrambling.