summaryrefslogtreecommitdiffstats
path: root/bridge/slack/slack.go
diff options
context:
space:
mode:
authorOyyoDams <OyyoDams@users.noreply.github.com>2018-05-26 13:25:26 +0200
committerWim <wim@42.be>2018-05-26 13:25:26 +0200
commitf6eefa4ecc234321cb6927dbdd2b5e9405799edf (patch)
treea2d21a4362cf3d982577e64bd2da6daa0c2a7aed /bridge/slack/slack.go
parentf1db166ac4b4934b7bf55b372b234be6ab8b18de (diff)
downloadmatterbridge-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.go2
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