diff options
author | Wim <wim@42.be> | 2017-10-12 20:33:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-12 20:33:37 +0200 |
commit | 4e1dc9f8856cfa8d1d5b4d3ae69a2beac3fd258a (patch) | |
tree | 9d949f6a9280b6fa0e2c539aa5a4a1e4f33de44e | |
parent | 155ae80d2228803879ceddf6dbf51755ea32a442 (diff) | |
download | matterbridge-msglm-4e1dc9f8856cfa8d1d5b4d3ae69a2beac3fd258a.tar.gz matterbridge-msglm-4e1dc9f8856cfa8d1d5b4d3ae69a2beac3fd258a.tar.bz2 matterbridge-msglm-4e1dc9f8856cfa8d1d5b4d3ae69a2beac3fd258a.zip |
Use bot username if specified (slack). Closes #273
-rw-r--r-- | bridge/slack/slack.go | 3 |
1 files changed, 3 insertions, 0 deletions
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 } } |