summaryrefslogtreecommitdiffstats
path: root/bridge/slack/slack.go
diff options
context:
space:
mode:
authorWim <wim@42.be>2017-10-12 20:33:37 +0200
committerGitHub <noreply@github.com>2017-10-12 20:33:37 +0200
commit4e1dc9f8856cfa8d1d5b4d3ae69a2beac3fd258a (patch)
tree9d949f6a9280b6fa0e2c539aa5a4a1e4f33de44e /bridge/slack/slack.go
parent155ae80d2228803879ceddf6dbf51755ea32a442 (diff)
downloadmatterbridge-msglm-4e1dc9f8856cfa8d1d5b4d3ae69a2beac3fd258a.tar.gz
matterbridge-msglm-4e1dc9f8856cfa8d1d5b4d3ae69a2beac3fd258a.tar.bz2
matterbridge-msglm-4e1dc9f8856cfa8d1d5b4d3ae69a2beac3fd258a.zip
Use bot username if specified (slack). Closes #273
Diffstat (limited to 'bridge/slack/slack.go')
-rw-r--r--bridge/slack/slack.go3
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
}
}