mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
Respect privacy lists for incoming PEP messages
This commit is contained in:
parent
ab12270837
commit
c566b1d01e
@ -1755,7 +1755,13 @@ handle_info({send_filtered, Feature, From, To, Packet}, StateName, StateData) ->
|
||||
FinalPacket = jlib:replace_from_to(From, To, Packet),
|
||||
case StateData#state.jid of
|
||||
To ->
|
||||
send_packet(StateData, FinalPacket);
|
||||
case privacy_check_packet(StateData, From, To,
|
||||
FinalPacket, in) of
|
||||
deny ->
|
||||
StateData;
|
||||
allow ->
|
||||
send_stanza(StateData, FinalPacket)
|
||||
end;
|
||||
_ ->
|
||||
ejabberd_router:route(From, To, FinalPacket),
|
||||
StateData
|
||||
|
Loading…
Reference in New Issue
Block a user