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.erl28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/mod_muc_opt.erl b/src/mod_muc_opt.erl
index e0988137e..760a5d7c8 100644
--- a/src/mod_muc_opt.erl
+++ b/src/mod_muc_opt.erl
@@ -15,11 +15,11 @@
-export([history_size/1]).
-export([host/1]).
-export([hosts/1]).
+-export([max_captcha_whitelist/1]).
+-export([max_password/1]).
-export([max_room_desc/1]).
-export([max_room_id/1]).
-export([max_room_name/1]).
--export([max_password/1]).
--export([max_captcha_whitelist/1]).
-export([max_rooms_discoitems/1]).
-export([max_user_conferences/1]).
-export([max_users/1]).
@@ -109,6 +109,18 @@ hosts(Opts) when is_map(Opts) ->
hosts(Host) ->
gen_mod:get_module_opt(Host, mod_muc, hosts).
+-spec max_captcha_whitelist(gen_mod:opts() | global | binary()) -> 'infinity' | pos_integer().
+max_captcha_whitelist(Opts) when is_map(Opts) ->
+ gen_mod:get_opt(max_captcha_whitelist, Opts);
+max_captcha_whitelist(Host) ->
+ gen_mod:get_module_opt(Host, mod_muc, max_captcha_whitelist).
+
+-spec max_password(gen_mod:opts() | global | binary()) -> 'infinity' | pos_integer().
+max_password(Opts) when is_map(Opts) ->
+ gen_mod:get_opt(max_password, Opts);
+max_password(Host) ->
+ gen_mod:get_module_opt(Host, mod_muc, max_password).
+
-spec max_room_desc(gen_mod:opts() | global | binary()) -> 'infinity' | pos_integer().
max_room_desc(Opts) when is_map(Opts) ->
gen_mod:get_opt(max_room_desc, Opts);
@@ -127,18 +139,6 @@ max_room_name(Opts) when is_map(Opts) ->
max_room_name(Host) ->
gen_mod:get_module_opt(Host, mod_muc, max_room_name).
--spec max_password(gen_mod:opts() | global | binary()) -> 'infinity' | pos_integer().
-max_password(Opts) when is_map(Opts) ->
- gen_mod:get_opt(max_password, Opts);
-max_password(Host) ->
- gen_mod:get_module_opt(Host, mod_muc, max_password).
-
--spec max_captcha_whitelist(gen_mod:opts() | global | binary()) -> 'infinity' | pos_integer().
-max_captcha_whitelist(Opts) when is_map(Opts) ->
- gen_mod:get_opt(max_captcha_whitelist, Opts);
-max_captcha_whitelist(Host) ->
- gen_mod:get_module_opt(Host, mod_muc, max_captcha_whitelist).
-
-spec max_rooms_discoitems(gen_mod:opts() | global | binary()) -> non_neg_integer().
max_rooms_discoitems(Opts) when is_map(Opts) ->
gen_mod:get_opt(max_rooms_discoitems, Opts);