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:
mattsc 2016-03-19 14:25:14 -07:00
parent f8e5a55a83
commit bce1fae063

View file

@ -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