mirror of
https://github.com/cwinfo/matterbridge.git
synced 2024-11-22 15:10:28 +00:00
Use bot username if specified (slack). Closes #273
This commit is contained in:
parent
155ae80d22
commit
4e1dc9f885
@ -345,6 +345,9 @@ func (b *Bslack) handleSlackClient(mchan chan *MMMessage) {
|
|||||||
}
|
}
|
||||||
if bot.Name != "" {
|
if bot.Name != "" {
|
||||||
m.Username = bot.Name
|
m.Username = bot.Name
|
||||||
|
if ev.Username != "" {
|
||||||
|
m.Username = ev.Username
|
||||||
|
}
|
||||||
m.UserID = bot.ID
|
m.UserID = bot.ID
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user