Skip to content

Commit

Permalink
'actions' may be in a "group"
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Sep 13, 2017
1 parent 7c46ef5 commit ac59996
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/unlang_compile.c
Expand Up @@ -1658,7 +1658,7 @@ static bool compile_action_subsection(unlang_t *c, CONF_SECTION *cs, CONF_SECTIO
* They just don't make sense for many group types.
*/
if (!((c->type == UNLANG_TYPE_CASE) || (c->type == UNLANG_TYPE_IF) || (c->type == UNLANG_TYPE_ELSIF) ||
(c->type == UNLANG_TYPE_ELSE))) {
(c->type == UNLANG_TYPE_GROUP) || (c->type == UNLANG_TYPE_ELSE))) {
cf_log_err(ci, "'actions' MUST NOT be in a '%s' block", unlang_ops[c->type].name);
return false;
}
Expand Down

0 comments on commit ac59996

Please sign in to comment.