mod_cron from ejabberd-contrib is another possible frontend to run commands

This commit is contained in:
Badlop 2022-04-11 15:33:06 +02:00
parent feb2ad0664
commit 10481ed895
1 changed files with 2 additions and 2 deletions

View File

@ -344,10 +344,10 @@ validator(from) ->
fun(L) when is_list(L) -> fun(L) when is_list(L) ->
lists:map( lists:map(
fun({K, V}) -> {(econf:enum([tag]))(K), (econf:binary())(V)}; fun({K, V}) -> {(econf:enum([tag]))(K), (econf:binary())(V)};
(A) -> (econf:enum([ejabberd_xmlrpc, mod_http_api, ejabberd_ctl]))(A) (A) -> (econf:enum([ejabberd_xmlrpc, mod_cron, mod_http_api, ejabberd_ctl]))(A)
end, lists:flatten(L)); end, lists:flatten(L));
(A) -> (A) ->
[(econf:enum([ejabberd_xmlrpc, mod_http_api, ejabberd_ctl]))(A)] [(econf:enum([ejabberd_xmlrpc, mod_cron, mod_http_api, ejabberd_ctl]))(A)]
end; end;
validator(what) -> validator(what) ->
econf:and_then( econf:and_then(