From ad3eee059e7b5a25d1723be2c6de2ca68c5f7a9f Mon Sep 17 00:00:00 2001 From: Badlop Date: Tue, 8 Jul 2025 10:46:17 +0200 Subject: [PATCH] mod_antispam: Annotate ejabberd version of the new commands --- src/mod_antispam.erl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/mod_antispam.erl b/src/mod_antispam.erl index 4a3ffb177..c2472c601 100644 --- a/src/mod_antispam.erl +++ b/src/mod_antispam.erl @@ -690,6 +690,7 @@ get_commands_spec() -> desc = "Reload spam JID/URL files", module = ?MODULE, function = reload_spam_filter_files, + note = "added in 25.07", args = [{host, binary}], result = {res, rescode}}, #ejabberd_commands{name = get_spam_filter_cache, @@ -697,6 +698,7 @@ get_commands_spec() -> desc = "Show spam filter cache contents", module = ?MODULE, function = get_spam_filter_cache, + note = "added in 25.07", args = [{host, binary}], result = {spammers, @@ -706,6 +708,7 @@ get_commands_spec() -> desc = "Remove old/unused spam JIDs from cache", module = ?MODULE, function = expire_spam_filter_cache, + note = "added in 25.07", args = [{host, binary}, {seconds, integer}], result = {res, restuple}}, #ejabberd_commands{name = add_to_spam_filter_cache, @@ -713,6 +716,7 @@ get_commands_spec() -> desc = "Add JID to spam filter cache", module = ?MODULE, function = add_to_spam_filter_cache, + note = "added in 25.07", args = [{host, binary}, {jid, binary}], result = {res, restuple}}, #ejabberd_commands{name = drop_from_spam_filter_cache, @@ -720,6 +724,7 @@ get_commands_spec() -> desc = "Drop JID from spam filter cache", module = ?MODULE, function = drop_from_spam_filter_cache, + note = "added in 25.07", args = [{host, binary}, {jid, binary}], result = {res, restuple}}, #ejabberd_commands{name = get_blocked_domains, @@ -727,6 +732,7 @@ get_commands_spec() -> desc = "Get list of domains being blocked", module = ?MODULE, function = get_blocked_domains, + note = "added in 25.07", args = [{host, binary}], result = {blocked_domains, {list, {jid, string}}}}, #ejabberd_commands{name = add_blocked_domain, @@ -734,6 +740,7 @@ get_commands_spec() -> desc = "Add domain to list of blocked domains", module = ?MODULE, function = add_blocked_domain, + note = "added in 25.07", args = [{host, binary}, {domain, binary}], result = {res, restuple}}, #ejabberd_commands{name = remove_blocked_domain, @@ -741,6 +748,7 @@ get_commands_spec() -> desc = "Remove domain from list of blocked domains", module = ?MODULE, function = remove_blocked_domain, + note = "added in 25.07", args = [{host, binary}, {domain, binary}], result = {res, restuple}}].