From eddbad2c76dce306663141edd5891b8fe78c91ff Mon Sep 17 00:00:00 2001 From: Badlop Date: Sat, 16 Oct 2010 22:32:20 +0200 Subject: [PATCH] Check privacy of outgoing Message stanzas (EJAB-1320) --- src/ejabberd_c2s.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ejabberd_c2s.erl b/src/ejabberd_c2s.erl index 074564225..4a78ebdc1 100644 --- a/src/ejabberd_c2s.erl +++ b/src/ejabberd_c2s.erl @@ -1026,7 +1026,8 @@ session_established2(El, StateData) -> ejabberd_hooks:run(user_send_packet, Server, [FromJID, ToJID, NewEl]), - ejabberd_router:route(FromJID, ToJID, NewEl), + check_privacy_route(FromJID, StateData, FromJID, + ToJID, NewEl), StateData; _ -> StateData