diff options
author | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2016-07-06 14:58:48 +0300 |
---|---|---|
committer | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2016-07-06 14:58:48 +0300 |
commit | 4220a2b98cf08fda4445074f89e5bec5c5c06736 (patch) | |
tree | 1c97336460c5edf77c1beffe7f2cba0e35dd8498 /src/mod_echo.erl | |
parent | Add missing '/' for jid matching from commit e300f80 (diff) |
Make modules loading in a dependent order (#1191)
Diffstat (limited to 'src/mod_echo.erl')
-rw-r--r-- | src/mod_echo.erl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mod_echo.erl b/src/mod_echo.erl index 7d9f81f8..ee904d79 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]. |