mod_cron from ejabberd-contrib is another possible frontend to run commands
This commit is contained in:
parent
feb2ad0664
commit
10481ed895
|
@ -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(
|
||||||
|
|
Loading…
Reference in New Issue