25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-26 17:38:45 +01:00
xmpp.chapril.org-ejabberd/src/mod_privilege_opt.erl

28 lines
964 B
Erlang
Raw Normal View History

2019-06-14 11:33:26 +02:00
%% Generated automatically
%% DO NOT EDIT: run `make options` instead
-module(mod_privilege_opt).
-export([message/1]).
-export([presence/1]).
-export([roster/1]).
-spec message(gen_mod:opts() | global | binary()) -> [{'outgoing','none' | acl:acl()}].
message(Opts) when is_map(Opts) ->
gen_mod:get_opt(message, Opts);
message(Host) ->
gen_mod:get_module_opt(Host, mod_privilege, message).
-spec presence(gen_mod:opts() | global | binary()) -> [{'managed_entity','none' | acl:acl()} | {'roster','none' | acl:acl()}].
presence(Opts) when is_map(Opts) ->
gen_mod:get_opt(presence, Opts);
presence(Host) ->
gen_mod:get_module_opt(Host, mod_privilege, presence).
-spec roster(gen_mod:opts() | global | binary()) -> [{'both','none' | acl:acl()} | {'get','none' | acl:acl()} | {'set','none' | acl:acl()}].
roster(Opts) when is_map(Opts) ->
gen_mod:get_opt(roster, Opts);
roster(Host) ->
gen_mod:get_module_opt(Host, mod_privilege, roster).