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 2e2bbc945..25bd4dc5f 100644
--- a/src/mod_muc_opt.erl
+++ b/src/mod_muc_opt.erl
@@ -33,6 +33,7 @@
-export([room_shaper/1]).
-export([user_message_shaper/1]).
-export([user_presence_shaper/1]).
+-export([vcard/1]).
-spec access(gen_mod:opts() | global | binary()) -> 'all' | acl:acl().
access(Opts) when is_map(Opts) ->
@@ -214,3 +215,9 @@ user_presence_shaper(Opts) when is_map(Opts) ->
user_presence_shaper(Host) ->
gen_mod:get_module_opt(Host, mod_muc, user_presence_shaper).
+-spec vcard(gen_mod:opts() | global | binary()) -> 'undefined' | tuple().
+vcard(Opts) when is_map(Opts) ->
+ gen_mod:get_opt(vcard, Opts);
+vcard(Host) ->
+ gen_mod:get_module_opt(Host, mod_muc, vcard).
+