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>2015-06-01 15:38:27 +0300
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>2015-06-01 15:38:27 +0300
commitfb6267f38ee47f3f725f88324d132741c85dfb6a (patch)
treed63c5efd207a736f9215d645ccb881bba942ed6a /src/mod_echo.erl
parenta9f7d9481f778e982c3f20ef82e41d66c6179f1c (diff)
Add config validation at startup
Diffstat (limited to 'src/mod_echo.erl')
-rw-r--r--src/mod_echo.erl7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mod_echo.erl b/src/mod_echo.erl
index 63dc8c81b..cdd9a8856 100644
--- a/src/mod_echo.erl
+++ b/src/mod_echo.erl
@@ -35,9 +35,9 @@
-export([start_link/2, start/2, stop/1,
do_client_version/3]).
-%% gen_server callbacks
-export([init/1, handle_call/3, handle_cast/2,
- handle_info/2, terminate/2, code_change/3]).
+ handle_info/2, terminate/2, code_change/3,
+ mod_opt_type/1]).
-include("ejabberd.hrl").
-include("logger.hrl").
@@ -196,3 +196,6 @@ do_client_version(enabled, From, To) ->
Values_string2 = iolist_to_binary(Values_string1),
?INFO_MSG("Information of the client: ~s~s",
[ToS, Values_string2]).
+
+mod_opt_type(host) -> fun iolist_to_binary/1;
+mod_opt_type(_) -> [host].