5
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2024-11-25 22:31:35 +00:00

Fix issue #432 - Avatar spoofing from Slack to Discord with uppercase in nick doesn't work (#433)

This commit is contained in:
OyyoDams 2018-05-26 13:25:26 +02:00 committed by Wim
parent f1db166ac4
commit f6eefa4ecc

View File

@ -268,7 +268,7 @@ func (b *Bslack) handleSlack() {
message.Text = html.UnescapeString(message.Text)
// Add the avatar
message.Avatar = b.getAvatar(message.Username)
message.Avatar = b.getAvatar(strings.ToLower(message.Username))
b.Log.Debugf("<= Message is %#v", message)
b.Remote <- *message