mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-20 17:27:00 +01: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),
|
gen_mod:get_module_opt(LServer, ?MODULE, allow_local_users, true),
|
||||||
case (Msg#message.body == [] andalso
|
case (Msg#message.body == [] andalso
|
||||||
Msg#message.subject == [])
|
Msg#message.subject == [])
|
||||||
orelse (AllowLocalUsers andalso
|
orelse ((AllowLocalUsers orelse From#jid.luser == <<"">>) andalso
|
||||||
ejabberd_router:is_my_route(From#jid.lserver)) of
|
ejabberd_router:is_my_route(From#jid.lserver)) of
|
||||||
false ->
|
false ->
|
||||||
{Sub, _} = ejabberd_hooks:run_fold(
|
{Sub, _} = ejabberd_hooks:run_fold(
|
||||||
|
Loading…
Reference in New Issue
Block a user