Fix portrait missing in [message] with empty image= key
This is mostly important for use of the MESSAGE macro. Use image=none if no image/portrait is supposed to be shown.
This commit is contained in:
parent
f8e5a55a83
commit
bce1fae063
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ end
|
|||
local function get_image(cfg, speaker)
|
||||
local image = cfg.image
|
||||
|
||||
if speaker and image == nil then
|
||||
if speaker and (image == nil or image == "") then
|
||||
image = speaker.portrait
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue