From ea89e62a96db09c72c6dd3f6617cd3db91b24248 Mon Sep 17 00:00:00 2001 From: Patrick Connolly Date: Mon, 15 Oct 2018 08:35:34 +0800 Subject: [PATCH] Don't contact google to translate empty messages. --- gateway/gateway.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gateway/gateway.go b/gateway/gateway.go index 57752718..3d25b275 100644 --- a/gateway/gateway.go +++ b/gateway/gateway.go @@ -332,7 +332,7 @@ func (gw *Gateway) handleMessage(msg config.Message, dest *bridge.Bridge) []*BrM msg.Avatar = gw.modifyAvatar(origmsg, dest) msg.Username = gw.modifyUsername(origmsg, dest) msg.ID = "" - if (gw.Router.GTClient != nil) && (channel.Options.Locale != "") { + if (gw.Router.GTClient != nil) && (channel.Options.Locale != "") && (origmsg.Text != "") { ctx := context.Background()