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_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 3a4f0e38f..48d373ae4 100644
--- a/src/mod_echo.erl
+++ b/src/mod_echo.erl
@@ -121,7 +121,7 @@ handle_info({route, From, To, Packet}, State) ->
"" -> jlib:make_error_reply(Packet, ?ERR_BAD_REQUEST);
_ -> Packet
end,
- do_client_version(To, From),
+ %%do_client_version(To, From),
ejabberd_router:route(To, From, Packet2),
{noreply, State};
handle_info(_Info, State) ->
@@ -146,9 +146,12 @@ code_change(_OldVsn, State, _Extra) ->
{ok, State}.
%%--------------------------------------------------------------------
-%%% Internal functions
+%% Example of routing XMPP packets using Erlang's message passing
%%--------------------------------------------------------------------
+%% To enable this educational example, uncomment the call to the
+%% function do_client_version in handle_info.
+
%% ejabberd provides a method to receive XMPP packets using Erlang's
%% message passing mechanism.
%%