5
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2024-11-26 02:01:36 +00:00

Fix bot (legacy token) messages not being send. Closes #571

This commit is contained in:
Wim 2018-12-13 20:49:14 +01:00
parent ccd55d2a28
commit 959ca3cef3

View File

@ -250,7 +250,7 @@ func (b *Bslack) populateMessageWithBotInfo(ev *slack.MessageEvent, rmsg *config
} }
b.Log.Debugf("Found bot %#v", bot) b.Log.Debugf("Found bot %#v", bot)
if bot.Name != "" && bot.Name != "Slack API Tester" { if bot.Name != "" {
rmsg.Username = bot.Name rmsg.Username = bot.Name
if ev.Username != "" { if ev.Username != "" {
rmsg.Username = ev.Username rmsg.Username = ev.Username