summaryrefslogtreecommitdiffstats
path: root/gateway
diff options
context:
space:
mode:
authorWim <wim@42.be>2017-06-05 23:12:19 +0200
committerWim <wim@42.be>2017-06-05 23:12:19 +0200
commit5f30a98bc14da749dc4e96263b6aba9bbbdca114 (patch)
treedcc3dceeeff6329f21f7b0da33a54d9e54a2c7a1 /gateway
parentb8a2fcbaff407e0070242fd0f428700f5d3e3031 (diff)
downloadmatterbridge-msglm-5f30a98bc14da749dc4e96263b6aba9bbbdca114.tar.gz
matterbridge-msglm-5f30a98bc14da749dc4e96263b6aba9bbbdca114.tar.bz2
matterbridge-msglm-5f30a98bc14da749dc4e96263b6aba9bbbdca114.zip
Add gateway name to messages
Diffstat (limited to 'gateway')
-rw-r--r--gateway/gateway.go1
1 files changed, 1 insertions, 0 deletions
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