Transformed message. bugfix

This commit is contained in:
Patrick Connolly
2018-10-08 14:48:25 +08:00
parent b9be663bc4
commit 6dc3375c97

View File

@@ -265,7 +265,7 @@ func (gw *Gateway) handleMessage(msg config.Message, dest *bridge.Bridge) []*BrM
msg.Username = gw.modifyUsername(origmsg, dest) msg.Username = gw.modifyUsername(origmsg, dest)
msg.ID = "" msg.ID = ""
if channel.Options.Locale != "" { if channel.Options.Locale != "" {
flog.Debugf("We're translating this message into: " + channel.Options.Locale) msg.Text = msg.Text + " --- powered by Google Translate"
} }
if res, ok := gw.Messages.Get(origmsg.ID); ok { if res, ok := gw.Messages.Get(origmsg.ID); ok {
IDs := res.([]*BrMsgID) IDs := res.([]*BrMsgID)