diff --git a/bridge/config/config.go b/bridge/config/config.go index 243f6601..ac003070 100644 --- a/bridge/config/config.go +++ b/bridge/config/config.go @@ -23,6 +23,7 @@ type Message struct { Account string Event string Protocol string + Gateway string Timestamp time.Time } diff --git a/gateway/gateway.go b/gateway/gateway.go index 8ca504e5..27a48c75 100644 --- a/gateway/gateway.go +++ b/gateway/gateway.go @@ -200,6 +200,7 @@ func (gw *Gateway) handleMessage(msg config.Message, dest *bridge.Bridge) { } log.Debugf("Sending %#v from %s (%s) to %s (%s)", msg, msg.Account, originchannel, dest.Account, channel.Name) msg.Channel = channel.Name + msg.Gateway = gw.Name gw.modifyAvatar(&msg, dest) gw.modifyUsername(&msg, dest) // for api we need originchannel as channel