25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-26 16:26:24 +01:00

Respect privacy lists for incoming PEP messages

This commit is contained in:
Holger Weiss 2014-11-18 01:25:12 +01:00
parent ab12270837
commit c566b1d01e

View File

@ -1755,7 +1755,13 @@ handle_info({send_filtered, Feature, From, To, Packet}, StateName, StateData) ->
FinalPacket = jlib:replace_from_to(From, To, Packet), FinalPacket = jlib:replace_from_to(From, To, Packet),
case StateData#state.jid of case StateData#state.jid of
To -> 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), ejabberd_router:route(From, To, FinalPacket),
StateData StateData