diff --git a/src/ejabberd_s2s_in.erl b/src/ejabberd_s2s_in.erl index ae6508cdd..6a38ae272 100644 --- a/src/ejabberd_s2s_in.erl +++ b/src/ejabberd_s2s_in.erl @@ -414,7 +414,7 @@ stream_established({xmlstreamelement, El}, StateData) -> (Name == "presence")) -> ejabberd_hooks:run( s2s_receive_packet, - LFrom, + LTo, [From, To, NewEl]), ejabberd_router:route( From, To, NewEl); @@ -433,7 +433,7 @@ stream_established({xmlstreamelement, El}, StateData) -> (Name == "presence")) -> ejabberd_hooks:run( s2s_receive_packet, - LFrom, + LTo, [From, To, NewEl]), ejabberd_router:route( From, To, NewEl);