Skip to content

Commit

Permalink
Merge pull request #763 from GregoryLundberg/GL_role_missing_role
Browse files Browse the repository at this point in the history
[role] always error on missing role=
  • Loading branch information
CelticMinstrel committed Sep 2, 2016
2 parents 601f217 + 65134d6 commit 3ca997d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions data/lua/wml-tags.lua
Expand Up @@ -904,11 +904,7 @@ function wml_actions.role(cfg)
local filter = helper.shallow_literal(cfg)

if role == nil then
if helper.get_child("auto_recall") ~= nil then
role = ""
else
helper.wml_error("missing role= in [role]")
end
helper.wml_error("missing role= in [role]")
end

local types = {}
Expand Down

0 comments on commit 3ca997d

Please sign in to comment.