summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ejabberd_s2s_in.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ejabberd_s2s_in.erl b/src/ejabberd_s2s_in.erl
index ae6508cd..6a38ae27 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);