Skip to content

Commit

Permalink
Fix portrait missing in [message] with empty image= key
Browse files Browse the repository at this point in the history
This is mostly important for use of the MESSAGE macro.  Use image=none
if no image/portrait is supposed to be shown.
  • Loading branch information
mattsc authored and mattsc committed Mar 19, 2016
1 parent f8e5a55 commit bce1fae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/lua/wml/message.lua
Expand Up @@ -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

Expand Down

0 comments on commit bce1fae

Please sign in to comment.