summaryrefslogtreecommitdiff
path: root/src/mod_last_odbc.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/mod_last_odbc.erl')
-rw-r--r--src/mod_last_odbc.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mod_last_odbc.erl b/src/mod_last_odbc.erl
index 6edd10a2..ef3c656e 100644
--- a/src/mod_last_odbc.erl
+++ b/src/mod_last_odbc.erl
@@ -62,12 +62,13 @@ process_sm_iq(From, To, #iq{type = Type, sub_el = SubEl} = IQ) ->
IQ#iq{type = error, sub_el = [SubEl, ?ERR_NOT_ALLOWED]};
get ->
User = To#jid.luser,
+ Server = To#jid.lserver,
{Subscription, _Groups} =
ejabberd_hooks:run_fold(
roster_get_jid_info, {none, []}, [User, From]),
if
(Subscription == both) or (Subscription == from) ->
- case catch mod_privacy:get_user_list(User) of
+ case catch mod_privacy:get_user_list(User, Server) of
{'EXIT', _Reason} ->
get_last(IQ, SubEl, User);
List ->