get_last_access(User, Server) ->
case ejabberd_sm:get_user_resources(User, Server) of
[] ->
- _US = {User, Server},
+%% _US = {User, Server},
case get_last_info(User, Server) of
mod_last_required -> mod_last_required;
not_found -> never;
-record(state, {host, module, function}).
--type component() :: ejabberd_sm | ejabberd_local.
+%%-type component() :: ejabberd_sm | ejabberd_local.
-type type() :: no_queue | one_queue | pos_integer() | parallel.
--type opts() :: no_queue | {one_queue, pid()} | {queues, [pid()]} | parallel.
+%%-type opts() :: no_queue | {one_queue, pid()} | {queues, [pid()]} | parallel.
%%====================================================================
%% API
Server)
of
[] ->
- _US = {User, Server},
+%% _US = {User, Server},
case get_last_info(User, Server) of
not_found -> ?T(Lang, <<"Never">>);
{ok, Timestamp, _Status} ->