diff options
author | Wim <wim@42.be> | 2016-11-05 01:11:28 +0100 |
---|---|---|
committer | Wim <wim@42.be> | 2016-11-05 01:11:51 +0100 |
commit | 2dbe0eb55729620ffdfdb7e4f10003564d79c7e1 (patch) | |
tree | 65e5309a42c1cee478b5b0c8448c36d819c9d41a /bridge/discord/discord.go | |
parent | 50a0df427927b60724d8e6e00ba06822e0aa7308 (diff) | |
download | matterbridge-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/discord/discord.go')
-rw-r--r-- | bridge/discord/discord.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bridge/discord/discord.go b/bridge/discord/discord.go index 446977ad..7995a06d 100644 --- a/bridge/discord/discord.go +++ b/bridge/discord/discord.go @@ -103,7 +103,8 @@ func (b *bdiscord) Send(msg config.Message) error { flog.Errorf("Could not find channelID for %v", msg.Channel) return nil } - b.c.ChannelMessageSend(channelID, msg.Username+msg.Text) + nick := config.GetNick(&msg, b.Config) + b.c.ChannelMessageSend(channelID, nick+msg.Text) return nil } |