summaryrefslogtreecommitdiffstats
path: root/bridge/discord
diff options
context:
space:
mode:
authorDeclan Hoare <declanhoare@exemail.com.au>2019-02-23 00:28:27 +1100
committerWim <wim@42.be>2019-02-22 14:28:27 +0100
commita7dd033c3b11fd4e0f186cfb00c1a68ea4eab217 (patch)
treeee482cc3e6584d9fe8610a96e1e74d56bc0024b1 /bridge/discord
parent95e78ffa05ea42b476ae04fe9d7a9cc17d5fdc2f (diff)
downloadmatterbridge-msglm-a7dd033c3b11fd4e0f186cfb00c1a68ea4eab217.tar.gz
matterbridge-msglm-a7dd033c3b11fd4e0f186cfb00c1a68ea4eab217.tar.bz2
matterbridge-msglm-a7dd033c3b11fd4e0f186cfb00c1a68ea4eab217.zip
Allow sending discriminator with Discord username (#726)
Diffstat (limited to 'bridge/discord')
-rw-r--r--bridge/discord/handlers.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/bridge/discord/handlers.go b/bridge/discord/handlers.go
index 85bac2ec..85a36e1d 100644
--- a/bridge/discord/handlers.go
+++ b/bridge/discord/handlers.go
@@ -71,6 +71,9 @@ func (b *Bdiscord) messageCreate(s *discordgo.Session, m *discordgo.MessageCreat
rmsg.Username = b.getNick(m.Author)
} else {
rmsg.Username = m.Author.Username
+ if b.GetBool("UseDiscriminator") {
+ rmsg.Username += "#" + m.Author.Discriminator
+ }
}
// if we have embedded content add it to text