diff options
-rw-r--r-- | src/mod_last.erl | 4 | ||||
-rw-r--r-- | src/mod_last_odbc.erl | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/mod_last.erl b/src/mod_last.erl index d3b561f60..c2a79fb2a 100644 --- a/src/mod_last.erl +++ b/src/mod_last.erl @@ -125,9 +125,9 @@ process_sm_iq(From, To, #iq{type = Type, sub_el = SubEl} = IQ) -> privacy_check_packet, Server, allow, [User, Server, UserListRecord, - {From, To, + {To, From, {xmlelement, "presence", [], []}}, - in]) of + out]) of allow -> get_last(IQ, SubEl, User, Server); deny -> diff --git a/src/mod_last_odbc.erl b/src/mod_last_odbc.erl index 7616c5020..b22da5ffd 100644 --- a/src/mod_last_odbc.erl +++ b/src/mod_last_odbc.erl @@ -117,9 +117,9 @@ process_sm_iq(From, To, #iq{type = Type, sub_el = SubEl} = IQ) -> privacy_check_packet, Server, allow, [User, Server, UserListRecord, - {From, To, + {To, From, {xmlelement, "presence", [], []}}, - in]) of + out]) of allow -> get_last(IQ, SubEl, User, Server); deny -> |