aboutsummaryrefslogtreecommitdiff
path: root/src/ejabberd_options.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/ejabberd_options.erl')
-rw-r--r--src/ejabberd_options.erl9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/ejabberd_options.erl b/src/ejabberd_options.erl
index 49fc66124..1eff76575 100644
--- a/src/ejabberd_options.erl
+++ b/src/ejabberd_options.erl
@@ -110,7 +110,14 @@ opt_type(cache_missed) ->
opt_type(cache_size) ->
econf:pos_int(infinity);
opt_type(captcha_cmd) ->
- econf:file();
+ econf:and_then(
+ econf:binary(),
+ fun(V) ->
+ V2 = misc:expand_keyword(<<"@SEMVER@">>, V,
+ ejabberd_option:version()),
+ misc:expand_keyword(<<"@VERSION">>, V2,
+ misc:semver_to_xxyy(ejabberd_option:version()))
+ end);
opt_type(captcha_host) ->
econf:binary();
opt_type(captcha_limit) ->