Skip to content

Commit

Permalink
Promote deprecation warning for [option]message= to level 3
Browse files Browse the repository at this point in the history
Addresses #3980
  • Loading branch information
CelticMinstrel committed Feb 23, 2021
1 parent f40b0cf commit 2271de8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/lua/wml/message.lua
Expand Up @@ -300,7 +300,7 @@ function wesnoth.wml_actions.message(cfg)
if wesnoth.eval_conditional(condition) then
if option.message and not option.image and not option.label then
local message = tostring(option.message)
wesnoth.deprecated_message("[option]message=", 2, "1.15.0", "Use label= instead.");
wesnoth.deprecated_message("[option]message=", 3, "1.15.0", "Use label= instead.");
-- Legacy format
table.insert(options, option.message)
else
Expand All @@ -312,7 +312,7 @@ function wesnoth.wml_actions.message(cfg)
value = option.value
}
if option.message then
wesnoth.deprecated_message("[option]message=", 2, "1.15.0", "Use label= instead.");
wesnoth.deprecated_message("[option]message=", 3, "1.15.0", "Use label= instead.");
if not option.label then
-- Support either message or description
opt.label = option.message
Expand Down

0 comments on commit 2271de8

Please sign in to comment.