aboutsummaryrefslogtreecommitdiff
path: root/src/mod_muc_opt.erl
diff options
context:
space:
mode:
authorPouriya <pouriya.jahanbakhsh@gmail.com>2022-01-21 03:14:28 +0330
committerGitHub <noreply@github.com>2022-01-21 03:14:28 +0330
commit03485f5e940326a9fdbcf2ecd1918b2772003a6a (patch)
tree5ce253cdd24e11f0f2bd90babbbf0bc38e38c575 /src/mod_muc_opt.erl
parentMerge branch 'processone:master' into master (diff)
parentmod_pubsub: Allow for limiting item_expire value (diff)
Merge branch 'processone:master' into master
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 760a5d7c8..4b9e8b806 100644
--- a/src/mod_muc_opt.erl
+++ b/src/mod_muc_opt.erl
@@ -9,6 +9,7 @@
-export([access_mam/1]).
-export([access_persistent/1]).
-export([access_register/1]).
+-export([cleanup_affiliations_on_start/1]).
-export([db_type/1]).
-export([default_room_options/1]).
-export([hibernation_timeout/1]).
@@ -73,6 +74,12 @@ access_register(Opts) when is_map(Opts) ->
access_register(Host) ->
gen_mod:get_module_opt(Host, mod_muc, access_register).
+-spec cleanup_affiliations_on_start(gen_mod:opts() | global | binary()) -> boolean().
+cleanup_affiliations_on_start(Opts) when is_map(Opts) ->
+ gen_mod:get_opt(cleanup_affiliations_on_start, Opts);
+cleanup_affiliations_on_start(Host) ->
+ gen_mod:get_module_opt(Host, mod_muc, cleanup_affiliations_on_start).
+
-spec db_type(gen_mod:opts() | global | binary()) -> atom().
db_type(Opts) when is_map(Opts) ->
gen_mod:get_opt(db_type, Opts);