diff options
author | Badlop <badlop@process-one.net> | 2008-01-30 18:52:23 +0300 |
---|---|---|
committer | Badlop <badlop@process-one.net> | 2008-01-30 18:52:23 +0300 |
commit | b6ff597740ccc9f6d8d4b0cc742bda90d1fa8cd2 (patch) | |
tree | a5d04a009cd334794a7642313612236106321bc0 /src/mod_echo.erl | |
parent | 45b01994e2f45258259afe4e9d4386a839fa7026 (diff) |
* src/mod_echo.erl: Put in comments the call to the educational
function do_client_version
SVN Revision: 1165
Diffstat (limited to 'src/mod_echo.erl')
-rw-r--r-- | src/mod_echo.erl | 7 |
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. %% |