25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-22 17:28:25 +01:00

Revert "Fix get_module_opt call in mod_block_strangers"

This reverts commit e5f64bc24a.
This commit is contained in:
Christophe Romain 2017-07-27 18:23:10 +02:00
parent 0cfec92c14
commit 35a11526f9

View File

@ -59,10 +59,7 @@ filter_packet({#message{} = Msg, State} = Acc) ->
LBFrom = jid:remove_resource(LFrom),
#{pres_a := PresA, jid := JID, lserver := LServer} = State,
AllowLocalUsers =
gen_mod:get_module_opt(
LServer, ?MODULE, allow_local_users,
fun(B) when is_boolean(B) -> B end,
true),
gen_mod:get_module_opt(LServer, ?MODULE, allow_local_users, true),
case (Msg#message.body == [] andalso
Msg#message.subject == [])
orelse (AllowLocalUsers andalso