25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-20 17:27:00 +01:00

Result of running "make options"

This commit is contained in:
Badlop 2024-09-11 17:04:51 +02:00
parent 642e7ecc29
commit 512285e48d
2 changed files with 2 additions and 9 deletions

View File

@ -330,7 +330,7 @@ cache_size() ->
cache_size(Host) -> cache_size(Host) ->
ejabberd_config:get_option({cache_size, Host}). ejabberd_config:get_option({cache_size, Host}).
-spec captcha_cmd() -> any(). -spec captcha_cmd() -> 'undefined' | binary().
captcha_cmd() -> captcha_cmd() ->
ejabberd_config:get_option({captcha_cmd, global}). ejabberd_config:get_option({captcha_cmd, global}).

View File

@ -8,7 +8,6 @@
-export([key_name/1]). -export([key_name/1]).
-export([matrix_domain/1]). -export([matrix_domain/1]).
-export([matrix_id_as_jid/1]). -export([matrix_id_as_jid/1]).
-export([persist/1]).
-spec host(gen_mod:opts() | global | binary()) -> binary(). -spec host(gen_mod:opts() | global | binary()) -> binary().
host(Opts) when is_map(Opts) -> host(Opts) when is_map(Opts) ->
@ -16,7 +15,7 @@ host(Opts) when is_map(Opts) ->
host(Host) -> host(Host) ->
gen_mod:get_module_opt(Host, mod_matrix_gw, host). gen_mod:get_module_opt(Host, mod_matrix_gw, host).
-spec key(gen_mod:opts() | global | binary()) -> any(). -spec key(gen_mod:opts() | global | binary()) -> {binary(),binary()}.
key(Opts) when is_map(Opts) -> key(Opts) when is_map(Opts) ->
gen_mod:get_opt(key, Opts); gen_mod:get_opt(key, Opts);
key(Host) -> key(Host) ->
@ -40,9 +39,3 @@ matrix_id_as_jid(Opts) when is_map(Opts) ->
matrix_id_as_jid(Host) -> matrix_id_as_jid(Host) ->
gen_mod:get_module_opt(Host, mod_matrix_gw, matrix_id_as_jid). gen_mod:get_module_opt(Host, mod_matrix_gw, matrix_id_as_jid).
-spec persist(gen_mod:opts() | global | binary()) -> boolean().
persist(Opts) when is_map(Opts) ->
gen_mod:get_opt(persist, Opts);
persist(Host) ->
gen_mod:get_module_opt(Host, mod_matrix_gw, persist).