mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 09:49:18 +02:00
mod_antispam: Move commands to a new "spam" API tag
This commit is contained in:
parent
427a29c74e
commit
e94ccabcf0
1 changed files with 8 additions and 8 deletions
|
@ -686,14 +686,14 @@ drop_from_cache(LJID, #state{jid_cache = Cache} = State) ->
|
||||||
-spec get_commands_spec() -> [ejabberd_commands()].
|
-spec get_commands_spec() -> [ejabberd_commands()].
|
||||||
get_commands_spec() ->
|
get_commands_spec() ->
|
||||||
[#ejabberd_commands{name = reload_spam_filter_files,
|
[#ejabberd_commands{name = reload_spam_filter_files,
|
||||||
tags = [filter],
|
tags = [spam],
|
||||||
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,
|
||||||
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,
|
||||||
tags = [filter],
|
tags = [spam],
|
||||||
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,
|
||||||
|
@ -702,42 +702,42 @@ get_commands_spec() ->
|
||||||
{spammers,
|
{spammers,
|
||||||
{list, {spammer, {tuple, [{jid, string}, {timestamp, integer}]}}}}},
|
{list, {spammer, {tuple, [{jid, string}, {timestamp, integer}]}}}}},
|
||||||
#ejabberd_commands{name = expire_spam_filter_cache,
|
#ejabberd_commands{name = expire_spam_filter_cache,
|
||||||
tags = [filter],
|
tags = [spam],
|
||||||
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,
|
||||||
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,
|
||||||
tags = [filter],
|
tags = [spam],
|
||||||
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,
|
||||||
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,
|
||||||
tags = [filter],
|
tags = [spam],
|
||||||
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,
|
||||||
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,
|
||||||
tags = [filter],
|
tags = [spam],
|
||||||
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,
|
||||||
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,
|
||||||
tags = [filter],
|
tags = [spam],
|
||||||
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,
|
||||||
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,
|
||||||
tags = [filter],
|
tags = [spam],
|
||||||
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,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue