summaryrefslogtreecommitdiffstats
path: root/bridge/gitter
diff options
context:
space:
mode:
authorWim <wim@42.be>2016-11-05 01:11:28 +0100
committerWim <wim@42.be>2016-11-05 01:11:51 +0100
commit2dbe0eb55729620ffdfdb7e4f10003564d79c7e1 (patch)
tree65e5309a42c1cee478b5b0c8448c36d819c9d41a /bridge/gitter
parent50a0df427927b60724d8e6e00ba06822e0aa7308 (diff)
downloadmatterbridge-msglm-2dbe0eb55729620ffdfdb7e4f10003564d79c7e1.tar.gz
matterbridge-msglm-2dbe0eb55729620ffdfdb7e4f10003564d79c7e1.tar.bz2
matterbridge-msglm-2dbe0eb55729620ffdfdb7e4f10003564d79c7e1.zip
Add support for dynamic IconURL (slack). Closes #43
Diffstat (limited to 'bridge/gitter')
-rw-r--r--bridge/gitter/gitter.go3
1 files changed, 2 insertions, 1 deletions
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 {