Fix incorrect check in UpdateBotProfile

This commit is contained in:
Tulir Asokan 2021-12-30 12:33:00 +02:00
parent 8e6640a6f6
commit 27303554b5

View file

@ -375,7 +375,7 @@ func (bridge *Bridge) UpdateBotProfile() {
if botConfig.Displayname == "remove" {
err = bridge.Bot.SetDisplayName("")
} else if len(botConfig.Avatar) > 0 {
} else if len(botConfig.Displayname) > 0 {
err = bridge.Bot.SetDisplayName(botConfig.Displayname)
}
if err != nil {