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

GNU General Public License v3.0
32 stars 41 forks source link

Fix polyglot support breaking emotes #137

Closed VilcsiTH closed 1 year ago

VilcsiTH commented 1 year ago

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.