mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 09:49:18 +02:00
mod_antispam: Annotate ejabberd version of the new commands
This commit is contained in:
parent
e94ccabcf0
commit
ad3eee059e
1 changed files with 8 additions and 0 deletions
|
@ -690,6 +690,7 @@ get_commands_spec() ->
|
||||||
desc = "Reload spam JID/URL files",
|
desc = "Reload spam JID/URL files",
|
||||||
module = ?MODULE,
|
module = ?MODULE,
|
||||||
function = reload_spam_filter_files,
|
function = reload_spam_filter_files,
|
||||||
|
note = "added in 25.07",
|
||||||
args = [{host, binary}],
|
args = [{host, binary}],
|
||||||
result = {res, rescode}},
|
result = {res, rescode}},
|
||||||
#ejabberd_commands{name = get_spam_filter_cache,
|
#ejabberd_commands{name = get_spam_filter_cache,
|
||||||
|
@ -697,6 +698,7 @@ get_commands_spec() ->
|
||||||
desc = "Show spam filter cache contents",
|
desc = "Show spam filter cache contents",
|
||||||
module = ?MODULE,
|
module = ?MODULE,
|
||||||
function = get_spam_filter_cache,
|
function = get_spam_filter_cache,
|
||||||
|
note = "added in 25.07",
|
||||||
args = [{host, binary}],
|
args = [{host, binary}],
|
||||||
result =
|
result =
|
||||||
{spammers,
|
{spammers,
|
||||||
|
@ -706,6 +708,7 @@ get_commands_spec() ->
|
||||||
desc = "Remove old/unused spam JIDs from cache",
|
desc = "Remove old/unused spam JIDs from cache",
|
||||||
module = ?MODULE,
|
module = ?MODULE,
|
||||||
function = expire_spam_filter_cache,
|
function = expire_spam_filter_cache,
|
||||||
|
note = "added in 25.07",
|
||||||
args = [{host, binary}, {seconds, integer}],
|
args = [{host, binary}, {seconds, integer}],
|
||||||
result = {res, restuple}},
|
result = {res, restuple}},
|
||||||
#ejabberd_commands{name = add_to_spam_filter_cache,
|
#ejabberd_commands{name = add_to_spam_filter_cache,
|
||||||
|
@ -713,6 +716,7 @@ get_commands_spec() ->
|
||||||
desc = "Add JID to spam filter cache",
|
desc = "Add JID to spam filter cache",
|
||||||
module = ?MODULE,
|
module = ?MODULE,
|
||||||
function = add_to_spam_filter_cache,
|
function = add_to_spam_filter_cache,
|
||||||
|
note = "added in 25.07",
|
||||||
args = [{host, binary}, {jid, binary}],
|
args = [{host, binary}, {jid, binary}],
|
||||||
result = {res, restuple}},
|
result = {res, restuple}},
|
||||||
#ejabberd_commands{name = drop_from_spam_filter_cache,
|
#ejabberd_commands{name = drop_from_spam_filter_cache,
|
||||||
|
@ -720,6 +724,7 @@ get_commands_spec() ->
|
||||||
desc = "Drop JID from spam filter cache",
|
desc = "Drop JID from spam filter cache",
|
||||||
module = ?MODULE,
|
module = ?MODULE,
|
||||||
function = drop_from_spam_filter_cache,
|
function = drop_from_spam_filter_cache,
|
||||||
|
note = "added in 25.07",
|
||||||
args = [{host, binary}, {jid, binary}],
|
args = [{host, binary}, {jid, binary}],
|
||||||
result = {res, restuple}},
|
result = {res, restuple}},
|
||||||
#ejabberd_commands{name = get_blocked_domains,
|
#ejabberd_commands{name = get_blocked_domains,
|
||||||
|
@ -727,6 +732,7 @@ get_commands_spec() ->
|
||||||
desc = "Get list of domains being blocked",
|
desc = "Get list of domains being blocked",
|
||||||
module = ?MODULE,
|
module = ?MODULE,
|
||||||
function = get_blocked_domains,
|
function = get_blocked_domains,
|
||||||
|
note = "added in 25.07",
|
||||||
args = [{host, binary}],
|
args = [{host, binary}],
|
||||||
result = {blocked_domains, {list, {jid, string}}}},
|
result = {blocked_domains, {list, {jid, string}}}},
|
||||||
#ejabberd_commands{name = add_blocked_domain,
|
#ejabberd_commands{name = add_blocked_domain,
|
||||||
|
@ -734,6 +740,7 @@ get_commands_spec() ->
|
||||||
desc = "Add domain to list of blocked domains",
|
desc = "Add domain to list of blocked domains",
|
||||||
module = ?MODULE,
|
module = ?MODULE,
|
||||||
function = add_blocked_domain,
|
function = add_blocked_domain,
|
||||||
|
note = "added in 25.07",
|
||||||
args = [{host, binary}, {domain, binary}],
|
args = [{host, binary}, {domain, binary}],
|
||||||
result = {res, restuple}},
|
result = {res, restuple}},
|
||||||
#ejabberd_commands{name = remove_blocked_domain,
|
#ejabberd_commands{name = remove_blocked_domain,
|
||||||
|
@ -741,6 +748,7 @@ get_commands_spec() ->
|
||||||
desc = "Remove domain from list of blocked domains",
|
desc = "Remove domain from list of blocked domains",
|
||||||
module = ?MODULE,
|
module = ?MODULE,
|
||||||
function = remove_blocked_domain,
|
function = remove_blocked_domain,
|
||||||
|
note = "added in 25.07",
|
||||||
args = [{host, binary}, {domain, binary}],
|
args = [{host, binary}, {domain, binary}],
|
||||||
result = {res, restuple}}].
|
result = {res, restuple}}].
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue