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().
+-spec hibernation_timeout(gen_mod:opts() | global | binary()) -> 'infinity' | pos_integer().
hibernation_timeout(Opts) when is_map(Opts) ->
gen_mod:get_opt(hibernation_timeout, Opts);
hibernation_timeout(Host) ->
erl_types:t_number();
spec(octal, 0, _, _) ->
erl_types:t_non_neg_integer();
-spec(binary, A, _, _) when A == 0; A == 1 ->
+spec(binary, A, _, _) when A == 0; A == 1; A == 2 ->
erl_types:t_binary();
spec(enum, 1, [L], _) ->
try
erl_types:t_boolean();
spec(atom, 0, _, _) ->
erl_types:t_atom();
-spec(string, A, _, _) when A == 0; A == 1 ->
+spec(string, A, _, _) when A == 0; A == 1; A == 2 ->
erl_types:t_string();
spec(any, 0, _, Mod) ->
t_unknown(Mod);
[t_remote(inet, ip6_address), erl_types:t_from_range(0, 128)]));
spec(port, 0, _, _) ->
erl_types:t_from_range(1, 65535);
-spec(re, 0, _, _) ->
+spec(re, A, _, _) when A == 0; A == 1 ->
t_remote(re, mp);
-spec(glob, 0, _, _) ->
+spec(glob, A, _, _) when A == 0; A == 1 ->
t_remote(re, mp);
spec(path, 0, _, _) ->
erl_types:t_binary();