1
0
Fork 0
mirror of https://github.com/processone/ejabberd synced 2025-10-03 17:59:31 +02:00

Result of running "make format doap options"

This commit is contained in:
Badlop 2025-07-08 12:34:34 +02:00
parent b118dd8fc6
commit 443f39bfdb
4 changed files with 91 additions and 8 deletions

View file

@ -773,6 +773,15 @@
<xmpp:note>mod_mam</xmpp:note> <xmpp:note>mod_mam</xmpp:note>
</xmpp:SupportedXep> </xmpp:SupportedXep>
</implements> </implements>
<implements>
<xmpp:SupportedXep>
<xmpp:xep rdf:resource="https://xmpp.org/extensions/xep-0431.html"/>
<xmpp:version>0.2.0</xmpp:version>
<xmpp:since>24.12</xmpp:since>
<xmpp:status>complete</xmpp:status>
<xmpp:note>mod_mam</xmpp:note>
</xmpp:SupportedXep>
</implements>
<implements> <implements>
<xmpp:SupportedXep> <xmpp:SupportedXep>
<xmpp:xep rdf:resource="https://xmpp.org/extensions/xep-0440.html"/> <xmpp:xep rdf:resource="https://xmpp.org/extensions/xep-0440.html"/>
@ -821,10 +830,10 @@
<implements> <implements>
<xmpp:SupportedXep> <xmpp:SupportedXep>
<xmpp:xep rdf:resource="https://xmpp.org/extensions/xep-0485.html"/> <xmpp:xep rdf:resource="https://xmpp.org/extensions/xep-0485.html"/>
<xmpp:version>0.2.0</xmpp:version> <xmpp:version>0.1.1</xmpp:version>
<xmpp:since>24.02</xmpp:since> <xmpp:since>25.07</xmpp:since>
<xmpp:status>complete</xmpp:status> <xmpp:status>complete</xmpp:status>
<xmpp:note>, mod_pubsub_serverinfo in ejabberd-contrib.git</xmpp:note> <xmpp:note>mod_pubsub_serverinfo</xmpp:note>
</xmpp:SupportedXep> </xmpp:SupportedXep>
</implements> </implements>
</Project> </Project>

62
src/mod_antispam_opt.erl Normal file
View file

@ -0,0 +1,62 @@
%% Generated automatically
%% DO NOT EDIT: run `make options` instead
-module(mod_antispam_opt).
-export([access_spam/1]).
-export([cache_size/1]).
-export([rtbl_services/1]).
-export([spam_domains_file/1]).
-export([spam_dump_file/1]).
-export([spam_jids_file/1]).
-export([spam_urls_file/1]).
-export([whitelist_domains_file/1]).
-spec access_spam(gen_mod:opts() | global | binary()) -> 'none' | acl:acl().
access_spam(Opts) when is_map(Opts) ->
gen_mod:get_opt(access_spam, Opts);
access_spam(Host) ->
gen_mod:get_module_opt(Host, mod_antispam, access_spam).
-spec cache_size(gen_mod:opts() | global | binary()) -> 'unlimited' | pos_integer().
cache_size(Opts) when is_map(Opts) ->
gen_mod:get_opt(cache_size, Opts);
cache_size(Host) ->
gen_mod:get_module_opt(Host, mod_antispam, cache_size).
-spec rtbl_services(gen_mod:opts() | global | binary()) -> [binary() | [{binary(),[{'spam_source_domains_node',binary()}]}]].
rtbl_services(Opts) when is_map(Opts) ->
gen_mod:get_opt(rtbl_services, Opts);
rtbl_services(Host) ->
gen_mod:get_module_opt(Host, mod_antispam, rtbl_services).
-spec spam_domains_file(gen_mod:opts() | global | binary()) -> 'none' | binary().
spam_domains_file(Opts) when is_map(Opts) ->
gen_mod:get_opt(spam_domains_file, Opts);
spam_domains_file(Host) ->
gen_mod:get_module_opt(Host, mod_antispam, spam_domains_file).
-spec spam_dump_file(gen_mod:opts() | global | binary()) -> boolean() | binary().
spam_dump_file(Opts) when is_map(Opts) ->
gen_mod:get_opt(spam_dump_file, Opts);
spam_dump_file(Host) ->
gen_mod:get_module_opt(Host, mod_antispam, spam_dump_file).
-spec spam_jids_file(gen_mod:opts() | global | binary()) -> 'none' | binary().
spam_jids_file(Opts) when is_map(Opts) ->
gen_mod:get_opt(spam_jids_file, Opts);
spam_jids_file(Host) ->
gen_mod:get_module_opt(Host, mod_antispam, spam_jids_file).
-spec spam_urls_file(gen_mod:opts() | global | binary()) -> 'none' | binary().
spam_urls_file(Opts) when is_map(Opts) ->
gen_mod:get_opt(spam_urls_file, Opts);
spam_urls_file(Host) ->
gen_mod:get_module_opt(Host, mod_antispam, spam_urls_file).
-spec whitelist_domains_file(gen_mod:opts() | global | binary()) -> 'none' | binary().
whitelist_domains_file(Opts) when is_map(Opts) ->
gen_mod:get_opt(whitelist_domains_file, Opts);
whitelist_domains_file(Host) ->
gen_mod:get_module_opt(Host, mod_antispam, whitelist_domains_file).

View file

@ -225,10 +225,7 @@ mod_doc() ->
"This option is only needed if your configuration has more than one host in mod_pubsub's 'hosts' option. " "This option is only needed if your configuration has more than one host in mod_pubsub's 'hosts' option. "
"The default value is the first host defined in mod_pubsub 'hosts' option.")}}], "The default value is the first host defined in mod_pubsub 'hosts' option.")}}],
example => example =>
["modules:", ["modules:", " mod_pubsub_serverinfo:", " pubsub_host: custom.pubsub.domain.local"]}.
" mod_pubsub_serverinfo:",
" pubsub_host: custom.pubsub.domain.local"]
}.
in_auth_result(#{server_host := Host, remote_server := RServer} = State, true, _Server) -> in_auth_result(#{server_host := Host, remote_server := RServer} = State, true, _Server) ->
gen_server:cast( gen_server:cast(
@ -362,7 +359,9 @@ get_info(Acc, _Host, _Mod, _Node, _Lang) ->
Acc. Acc.
pubsub_host(Host) -> pubsub_host(Host) ->
{ok, PubsubHost} = gen_server:call(gen_mod:get_module_proc(Host, ?MODULE), pubsub_host), {ok, PubsubHost} =
gen_server:call(
gen_mod:get_module_proc(Host, ?MODULE), pubsub_host),
PubsubHost. PubsubHost.
pubsub_host(Host, Opts) -> pubsub_host(Host, Opts) ->

View file

@ -0,0 +1,13 @@
%% Generated automatically
%% DO NOT EDIT: run `make options` instead
-module(mod_pubsub_serverinfo_opt).
-export([pubsub_host/1]).
-spec pubsub_host(gen_mod:opts() | global | binary()) -> 'undefined' | binary().
pubsub_host(Opts) when is_map(Opts) ->
gen_mod:get_opt(pubsub_host, Opts);
pubsub_host(Host) ->
gen_mod:get_module_opt(Host, mod_pubsub_serverinfo, pubsub_host).