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:
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>2016-07-06 14:58:48 +0300
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>2016-07-06 14:58:48 +0300
commit4220a2b98cf08fda4445074f89e5bec5c5c06736 (patch)
tree1c97336460c5edf77c1beffe7f2cba0e35dd8498 /src/mod_echo.erl
parentde9f80f2cea4fe3fe3fd29155f9f78b8a8c678bd (diff)
Make modules loading in a dependent order (#1191)
Diffstat (limited to 'src/mod_echo.erl')
-rw-r--r--src/mod_echo.erl5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mod_echo.erl b/src/mod_echo.erl
index 7d9f81f82..ee904d798 100644
--- a/src/mod_echo.erl
+++ b/src/mod_echo.erl
@@ -37,7 +37,7 @@
-export([init/1, handle_call/3, handle_cast/2,
handle_info/2, terminate/2, code_change/3,
- mod_opt_type/1]).
+ mod_opt_type/1, depends/2]).
-include("ejabberd.hrl").
-include("logger.hrl").
@@ -200,5 +200,8 @@ do_client_version(enabled, From, To) ->
?INFO_MSG("Information of the client: ~s~s",
[ToS, Values_string2]).
+depends(_Host, _Opts) ->
+ [].
+
mod_opt_type(host) -> fun iolist_to_binary/1;
mod_opt_type(_) -> [host].