summaryrefslogtreecommitdiffstats
path: root/bridge/gitter/gitter.go
diff options
context:
space:
mode:
authorWim <wim@42.be>2017-06-18 15:44:54 +0200
committerWim <wim@42.be>2017-06-18 15:44:54 +0200
commit2ddc4f7ae91a51bc8fa279fdab3c7d64600e1a25 (patch)
tree060c4b14360809d4981cbf3b3b6701e84c48af54 /bridge/gitter/gitter.go
parent2dd402675d774eec8a3d4b062afb6a5eaf6f884c (diff)
downloadmatterbridge-msglm-2ddc4f7ae91a51bc8fa279fdab3c7d64600e1a25.tar.gz
matterbridge-msglm-2ddc4f7ae91a51bc8fa279fdab3c7d64600e1a25.tar.bz2
matterbridge-msglm-2ddc4f7ae91a51bc8fa279fdab3c7d64600e1a25.zip
Add UserID to each message. Closes #200
Diffstat (limited to 'bridge/gitter/gitter.go')
-rw-r--r--bridge/gitter/gitter.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/bridge/gitter/gitter.go b/bridge/gitter/gitter.go
index af71d892..973a7300 100644
--- a/bridge/gitter/gitter.go
+++ b/bridge/gitter/gitter.go
@@ -82,7 +82,7 @@ func (b *Bgitter) JoinChannel(channel string) error {
if !strings.HasSuffix(ev.Message.Text, "​") {
flog.Debugf("Sending message from %s on %s to gateway", ev.Message.From.Username, b.Account)
b.Remote <- config.Message{Username: ev.Message.From.Username, Text: ev.Message.Text, Channel: room,
- Account: b.Account, Avatar: b.getAvatar(ev.Message.From.Username)}
+ Account: b.Account, Avatar: b.getAvatar(ev.Message.From.Username), UserID: ev.Message.From.ID}
}
case *gitter.GitterConnectionClosed:
flog.Errorf("connection with gitter closed for room %s", room)