mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 17:59:31 +02:00
mod_antispam: use message/3 in test
This commit is contained in:
parent
ea19e4bc7f
commit
7a6e409879
1 changed files with 1 additions and 4 deletions
|
@ -96,10 +96,7 @@ empty_domain_list(Config) ->
|
|||
?match([], mod_antispam:get_blocked_domains(Host)),
|
||||
SpamFrom = jid:make(<<"spammer">>, <<"spam.domain">>, <<"spam_client">>),
|
||||
To = my_jid(Config),
|
||||
Msg = #message{from = SpamFrom,
|
||||
to = To,
|
||||
type = chat,
|
||||
body = [#text{data = <<"hello world">>}]},
|
||||
Msg = message(SpamFrom, To, <<"hello world">>),
|
||||
is_not_spam(Msg).
|
||||
|
||||
block_domain_globally(Config) ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue