From 2ddc4f7ae91a51bc8fa279fdab3c7d64600e1a25 Mon Sep 17 00:00:00 2001 From: Wim Date: Sun, 18 Jun 2017 15:44:54 +0200 Subject: Add UserID to each message. Closes #200 --- bridge/gitter/gitter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bridge/gitter/gitter.go') 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) -- cgit v1.2.3