Use slack real name as user name
This commit is contained in:
@@ -87,6 +87,11 @@ func (b *Bslack) populateMessageWithUserInfo(ev *slack.MessageEvent, rmsg *confi
|
||||
if user.Profile.DisplayName != "" {
|
||||
rmsg.Username = user.Profile.DisplayName
|
||||
}
|
||||
if b.GetBool("UseRealName") {
|
||||
if user.Profile.RealName != "" {
|
||||
rmsg.Username = user.Profile.RealName
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user