Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/processone/ejabberd.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/mod_configure.erl')
-rw-r--r--src/mod_configure.erl12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/mod_configure.erl b/src/mod_configure.erl
index 29b7276ca..44fee1e93 100644
--- a/src/mod_configure.erl
+++ b/src/mod_configure.erl
@@ -1782,15 +1782,13 @@ stop_node(From, Host, ENode, Action, XData) ->
get_last_info(User, Server) ->
- ML = lists:member(mod_last, gen_mod:loaded_modules(Server)),
- MLO = lists:member(mod_last_odbc, gen_mod:loaded_modules(Server)),
- case {ML, MLO} of
- {true, _} -> mod_last:get_last_info(User, Server);
- {false, true} -> mod_last_odbc:get_last_info(User, Server);
- {false, false} -> not_found
+ case gen_mod:is_loaded(Server, mod_last) of
+ true ->
+ mod_last:get_last_info(User, Server);
+ false ->
+ not_found
end.
-
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
adhoc_sm_commands(_Acc, From,