mirror of
https://github.com/processone/ejabberd.git
synced 2024-10-05 14:51:05 +02:00
Always accept messages from local (sub)domains
This commit is contained in:
parent
978c92f5e1
commit
803c31f760
@ -85,7 +85,7 @@ check_message(#message{from = From, to = To} = Msg) ->
|
||||
gen_mod:get_module_opt(LServer, ?MODULE, allow_local_users, true),
|
||||
case (Msg#message.body == [] andalso
|
||||
Msg#message.subject == [])
|
||||
orelse (AllowLocalUsers andalso
|
||||
orelse ((AllowLocalUsers orelse From#jid.luser == <<"">>) andalso
|
||||
ejabberd_router:is_my_route(From#jid.lserver)) of
|
||||
false ->
|
||||
{Sub, _} = ejabberd_hooks:run_fold(
|
||||
|
Loading…
Reference in New Issue
Block a user