Fixed: Don't manage translation of Npcs with deepl

feature/prepare-cross-merge
Ulukyn 5 years ago committed by kaetemi
parent 230ca5ffdb
commit f3b22802e8
No known key found for this signature in database
GPG Key ID: 9873C4D40BB479BC

@ -651,7 +651,11 @@ void CChatManager::chat( const TDataSetRow& sender, const ucstring& ucstr )
if (EnableDeepL)
{
CChatClient &client = getClient(*itA);
if (ucstr[0] != '>' && client.haveDisabledTranslation(sender_lang))
if (sender_lang == "wk")
receiver_lang = sender_lang;
if (ucstr[0] != '>' && (client.haveDisabledTranslation(sender_lang))
receiver_lang = sender_lang;
if (ucstr[0] == '>') // Sent directly when prefixed by '>', it's the anti-translation code

Loading…
Cancel
Save