From 2dbe0eb55729620ffdfdb7e4f10003564d79c7e1 Mon Sep 17 00:00:00 2001 From: Wim Date: Sat, 5 Nov 2016 01:11:28 +0100 Subject: Add support for dynamic IconURL (slack). Closes #43 --- bridge/gitter/gitter.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bridge/gitter') diff --git a/bridge/gitter/gitter.go b/bridge/gitter/gitter.go index 95c41af4..5daf7773 100644 --- a/bridge/gitter/gitter.go +++ b/bridge/gitter/gitter.go @@ -105,8 +105,9 @@ func (b *Bgitter) Send(msg config.Message) error { flog.Errorf("Could not find roomID for %v", msg.Channel) return nil } + nick := config.GetNick(&msg, b.Config) // add ZWSP because gitter echoes our own messages - return b.c.SendMessage(roomID, msg.Username+msg.Text+" ​") + return b.c.SendMessage(roomID, nick+msg.Text+" ​") } func (b *Bgitter) getRoomID(channel string) string { -- cgit v1.2.3