Thumbnail

rani/matterbridge.git

Clone URL: https://git.buni.party/rani/matterbridge.git

commit 9cc882c302ad7d1e82e368df73c0d1a64db1fe44 Author: Brian S. Stephan <bss@incorporeal.org> Date: Thu May 23 17:19:31 2024 +0000 Trim nick whitespace when looking up the guild members (discord) (#2072) this fixes the matching to attempt to find avatars fixes #2059 diff --git a/bridge/discord/helpers.go b/bridge/discord/helpers.go index 2e18f46..4284bf5 100644 --- a/bridge/discord/helpers.go +++ b/bridge/discord/helpers.go @@ -687 +687 @@ func (b *Bdiscord) getGuildMemberByNick(nick string) (*discordgo.Member, error)   b.membersMutex.RLock()   defer b.membersMutex.RUnlock()   - if member, ok := b.nickMemberMap[nick]; ok { + if member, ok := b.nickMemberMap[strings.TrimSpace(nick)]; ok {   return member, nil   }   return nil, errors.New("Couldn't find guild member with nick " + nick) // This will most likely get ignored by the caller