From 7260bedfa41d448897edb29efef5850784b7e99e Mon Sep 17 00:00:00 2001 From: Giovanni Harting <539@idlegandalf.com> Date: Sat, 26 Feb 2022 09:34:26 +0100 Subject: [PATCH] do not return translation if it matches the src text --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 570bb78..fd8155b 100644 --- a/main.go +++ b/main.go @@ -711,7 +711,7 @@ func getMatchChat(w http.ResponseWriter, r *http.Request) { goto sendNormalResp } - if srcLang == lang.String() { + if srcLang == lang.String() || strings.TrimSpace(translated) == strings.TrimSpace(stat.Message) { goto sendNormalResp }