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

Check privacy of outgoing Message stanzas (EJAB-1320)

This commit is contained in:
Badlop 2010-10-16 22:32:20 +02:00
parent 2e932dd85c
commit eddbad2c76

View File

@ -1026,7 +1026,8 @@ session_established2(El, StateData) ->
ejabberd_hooks:run(user_send_packet, ejabberd_hooks:run(user_send_packet,
Server, Server,
[FromJID, ToJID, NewEl]), [FromJID, ToJID, NewEl]),
ejabberd_router:route(FromJID, ToJID, NewEl), check_privacy_route(FromJID, StateData, FromJID,
ToJID, NewEl),
StateData; StateData;
_ -> _ ->
StateData StateData