mirror of
https://github.com/42wim/matterbridge.git
synced 2024-11-28 13:42:01 -08:00
Use nickname instead of username if defined (mattermost). Closes #452
This commit is contained in:
parent
89aa114192
commit
cb7278eb50
@ -185,6 +185,9 @@ func (b *Bmattermost) handleMatter() {
|
||||
for message := range messages {
|
||||
message.Avatar = helper.GetAvatar(b.avatarMap, message.UserID, b.General)
|
||||
message.Account = b.Account
|
||||
if nick := b.mc.GetNickName(message.UserID); nick != "" {
|
||||
message.Username = nick
|
||||
}
|
||||
message.Text, ok = b.replaceAction(message.Text)
|
||||
if ok {
|
||||
message.Event = config.EVENT_USER_ACTION
|
||||
|
Loading…
Reference in New Issue
Block a user