From 4e1dc9f8856cfa8d1d5b4d3ae69a2beac3fd258a Mon Sep 17 00:00:00 2001 From: Wim Date: Thu, 12 Oct 2017 20:33:37 +0200 Subject: Use bot username if specified (slack). Closes #273 --- bridge/slack/slack.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bridge') diff --git a/bridge/slack/slack.go b/bridge/slack/slack.go index d72a2223..23f60277 100644 --- a/bridge/slack/slack.go +++ b/bridge/slack/slack.go @@ -345,6 +345,9 @@ func (b *Bslack) handleSlackClient(mchan chan *MMMessage) { } if bot.Name != "" { m.Username = bot.Name + if ev.Username != "" { + m.Username = ev.Username + } m.UserID = bot.ID } } -- cgit v1.2.3