From f6eefa4ecc234321cb6927dbdd2b5e9405799edf Mon Sep 17 00:00:00 2001 From: OyyoDams Date: Sat, 26 May 2018 13:25:26 +0200 Subject: Fix issue #432 - Avatar spoofing from Slack to Discord with uppercase in nick doesn't work (#433) --- bridge/slack/slack.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bridge') 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 -- cgit v1.2.3