summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bridge/slack/helpers.go3
-rw-r--r--matterbridge.toml.sample4
2 files changed, 7 insertions, 0 deletions
diff --git a/bridge/slack/helpers.go b/bridge/slack/helpers.go
index c970b0d7..bdacd7ee 100644
--- a/bridge/slack/helpers.go
+++ b/bridge/slack/helpers.go
@@ -87,6 +87,9 @@ func (b *Bslack) populateMessageWithUserInfo(ev *slack.MessageEvent, rmsg *confi
if user.Profile.DisplayName != "" {
rmsg.Username = user.Profile.DisplayName
}
+ if b.GetBool("UseFullName") && user.Profile.RealName != "" {
+ rmsg.Username = user.Profile.RealName
+ }
return nil
}
diff --git a/matterbridge.toml.sample b/matterbridge.toml.sample
index 54768a1e..a0fa7c0b 100644
--- a/matterbridge.toml.sample
+++ b/matterbridge.toml.sample
@@ -862,6 +862,10 @@ ShowUserTyping=false
#Default "<clipped message>"
MessageClipped="<clipped message>"
+#If enabled use the slack "Real Name" as username.
+#OPTIONAL (default false)
+UseFullName=false
+
###################################################################
#discord section
###################################################################