aboutsummaryrefslogtreecommitdiff
path: root/src/mod_privacy.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/mod_privacy.erl')
-rw-r--r--src/mod_privacy.erl10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/mod_privacy.erl b/src/mod_privacy.erl
index 343645ff7..c4a1c471d 100644
--- a/src/mod_privacy.erl
+++ b/src/mod_privacy.erl
@@ -846,4 +846,12 @@ depends(_Host, _Opts) ->
mod_opt_type(db_type) -> fun(T) -> ejabberd_config:v_db(?MODULE, T) end;
mod_opt_type(iqdisc) -> fun gen_iq_handler:check_type/1;
-mod_opt_type(_) -> [db_type, iqdisc].
+mod_opt_type(O) when O == cache_life_time; O == cache_size ->
+ fun (I) when is_integer(I), I > 0 -> I;
+ (infinity) -> infinity
+ end;
+mod_opt_type(O) when O == use_cache; O == cache_missed ->
+ fun (B) when is_boolean(B) -> B end;
+mod_opt_type(_) ->
+ [db_type, iqdisc, cache_life_time, cache_size,
+ use_cache, cache_missed].