Haplo064 / ChatTranslator

6 stars 6 forks source link

Updated for api4 #5

Closed leatherface-dev closed 3 years ago

leatherface-dev commented 3 years ago

Updated the plugin to work with api4 - there's no logic change.

There was a strange issue when using the "Additional" mode. The original message was replaced by the translated string, and then the translated string was added as another new line. The result was 2 lines with the translated message. Not sure why (yet), but for now, I added a dirty fix to work around it by storing the unmodified original message beforehand.