mod_spam_filter: Update type specification
This commit is contained in:
parent
92fadcdf4e
commit
0bf94ba446
|
@ -710,7 +710,7 @@ get_commands_spec() ->
|
||||||
args = [{host, binary}, {jid, binary}],
|
args = [{host, binary}, {jid, binary}],
|
||||||
result = {res, restuple}}].
|
result = {res, restuple}}].
|
||||||
|
|
||||||
-spec reload_spam_filter_files(binary()) -> {ok | error, string()}.
|
-spec reload_spam_filter_files(binary()) -> ok | {error, string()}.
|
||||||
reload_spam_filter_files(<<"global">>) ->
|
reload_spam_filter_files(<<"global">>) ->
|
||||||
try lists:foreach(fun(Host) ->
|
try lists:foreach(fun(Host) ->
|
||||||
ok = reload_spam_filter_files(Host)
|
ok = reload_spam_filter_files(Host)
|
||||||
|
|
Loading…
Reference in New Issue