diff options
author | OyyoDams <OyyoDams@users.noreply.github.com> | 2018-05-26 13:25:26 +0200 |
---|---|---|
committer | Wim <wim@42.be> | 2018-05-26 13:25:26 +0200 |
commit | f6eefa4ecc234321cb6927dbdd2b5e9405799edf (patch) | |
tree | a2d21a4362cf3d982577e64bd2da6daa0c2a7aed /bridge/slack/slack.go | |
parent | f1db166ac4b4934b7bf55b372b234be6ab8b18de (diff) | |
download | matterbridge-msglm-f6eefa4ecc234321cb6927dbdd2b5e9405799edf.tar.gz matterbridge-msglm-f6eefa4ecc234321cb6927dbdd2b5e9405799edf.tar.bz2 matterbridge-msglm-f6eefa4ecc234321cb6927dbdd2b5e9405799edf.zip |
Fix issue #432 - Avatar spoofing from Slack to Discord with uppercase in nick doesn't work (#433)
Diffstat (limited to 'bridge/slack/slack.go')
-rw-r--r-- | bridge/slack/slack.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bridge/slack/slack.go b/bridge/slack/slack.go index 95c85158..cedb18e7 100644 --- a/bridge/slack/slack.go +++ b/bridge/slack/slack.go @@ -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 |