diff options
author | Wim <wim@42.be> | 2019-09-15 20:25:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-15 20:25:42 +0200 |
commit | 0abf4d5d5d7ffa3f87b65b788991e26cbbacc864 (patch) | |
tree | 21957a7bb78968489f676100ce620baf8520b308 /bridge/discord/handlers.go | |
parent | 9b320cd43fc77bd537660818d050285ee05cca14 (diff) | |
download | matterbridge-msglm-0abf4d5d5d7ffa3f87b65b788991e26cbbacc864.tar.gz matterbridge-msglm-0abf4d5d5d7ffa3f87b65b788991e26cbbacc864.tar.bz2 matterbridge-msglm-0abf4d5d5d7ffa3f87b65b788991e26cbbacc864.zip |
Specify correct GuildID on unknown user query (discord). Fixes #879 (#894)
Diffstat (limited to 'bridge/discord/handlers.go')
-rw-r--r-- | bridge/discord/handlers.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bridge/discord/handlers.go b/bridge/discord/handlers.go index 19e0ad6a..cfda2de9 100644 --- a/bridge/discord/handlers.go +++ b/bridge/discord/handlers.go @@ -89,7 +89,7 @@ func (b *Bdiscord) messageCreate(s *discordgo.Session, m *discordgo.MessageCreat // set username if !b.GetBool("UseUserName") { - rmsg.Username = b.getNick(m.Author) + rmsg.Username = b.getNick(m.Author, m.GuildID) } else { rmsg.Username = m.Author.Username if b.GetBool("UseDiscriminator") { |