mirror of
https://github.com/42wim/matterbridge.git
synced 2024-11-24 11:42:03 -08:00
Use slack real name as user name (slack) (#1775)
* Use slack real name as user name * Change slack option UseRealName to UseFullName
This commit is contained in:
parent
5f75f9886d
commit
6fe0cff342
@ -87,6 +87,9 @@ func (b *Bslack) populateMessageWithUserInfo(ev *slack.MessageEvent, rmsg *confi
|
|||||||
if user.Profile.DisplayName != "" {
|
if user.Profile.DisplayName != "" {
|
||||||
rmsg.Username = user.Profile.DisplayName
|
rmsg.Username = user.Profile.DisplayName
|
||||||
}
|
}
|
||||||
|
if b.GetBool("UseFullName") && user.Profile.RealName != "" {
|
||||||
|
rmsg.Username = user.Profile.RealName
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -862,6 +862,10 @@ ShowUserTyping=false
|
|||||||
#Default "<clipped message>"
|
#Default "<clipped message>"
|
||||||
MessageClipped="<clipped message>"
|
MessageClipped="<clipped message>"
|
||||||
|
|
||||||
|
#If enabled use the slack "Real Name" as username.
|
||||||
|
#OPTIONAL (default false)
|
||||||
|
UseFullName=false
|
||||||
|
|
||||||
###################################################################
|
###################################################################
|
||||||
#discord section
|
#discord section
|
||||||
###################################################################
|
###################################################################
|
||||||
|
Loading…
Reference in New Issue
Block a user