aboutsummaryrefslogtreecommitdiff
path: root/src/mod_muc_opt.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/mod_muc_opt.erl')
-rw-r--r--src/mod_muc_opt.erl7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mod_muc_opt.erl b/src/mod_muc_opt.erl
index df6d5e784..6beca88cd 100644
--- a/src/mod_muc_opt.erl
+++ b/src/mod_muc_opt.erl
@@ -11,6 +11,7 @@
-export([access_register/1]).
-export([db_type/1]).
-export([default_room_options/1]).
+-export([hibernation_timeout/1]).
-export([history_size/1]).
-export([host/1]).
-export([hosts/1]).
@@ -81,6 +82,12 @@ default_room_options(Opts) when is_map(Opts) ->
default_room_options(Host) ->
gen_mod:get_module_opt(Host, mod_muc, default_room_options).
+-spec hibernation_timeout(gen_mod:opts() | global | binary()) -> 'infinity' | non_neg_integer().
+hibernation_timeout(Opts) when is_map(Opts) ->
+ gen_mod:get_opt(hibernation_timeout, Opts);
+hibernation_timeout(Host) ->
+ gen_mod:get_module_opt(Host, mod_muc, hibernation_timeout).
+
-spec history_size(gen_mod:opts() | global | binary()) -> non_neg_integer().
history_size(Opts) when is_map(Opts) ->
gen_mod:get_opt(history_size, Opts);