From 4d38c7c6ead8fea81b6215d3b3d270d4bd95762b Mon Sep 17 00:00:00 2001 From: Declan Hoare Date: Fri, 22 Feb 2019 19:51:55 +1100 Subject: [PATCH] add UseDiscriminator to config struct and docs --- bridge/config/config.go | 1 + matterbridge.toml.sample | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/bridge/config/config.go b/bridge/config/config.go index f473ab04..7ab6aef4 100644 --- a/bridge/config/config.go +++ b/bridge/config/config.go @@ -136,6 +136,7 @@ type Protocol struct { UseAPI bool // mattermost, slack UseSASL bool // IRC UseTLS bool // IRC + UseDiscriminator bool // discord UseFirstName bool // telegram UseUserName bool // discord UseInsecureURL bool // telegram diff --git a/matterbridge.toml.sample b/matterbridge.toml.sample index 55f3ab7f..33aebea9 100644 --- a/matterbridge.toml.sample +++ b/matterbridge.toml.sample @@ -710,10 +710,14 @@ Server="yourservername" #OPTIONAL (default false) ShowEmbeds=false -#Shows the username (minus the discriminator) instead of the server nickname +#Shows the username instead of the server nickname #OPTIONAL (default false) UseUserName=false +#Show #xxxx discriminator with UseUserName +#OPTIONAL (default false) +UseDiscriminator=false + #Specify WebhookURL. If given, will relay messages using the Webhook, which gives a better look to messages. #This only works if you have one discord channel, if you have multiple discord channels you'll have to specify it in the gateway config #OPTIONAL (default empty)