]> granicus.if.org Git - ejabberd/commitdiff
* src/mod_echo.erl: Put in comments the call to the educational
authorBadlop <badlop@process-one.net>
Wed, 30 Jan 2008 16:07:59 +0000 (16:07 +0000)
committerBadlop <badlop@process-one.net>
Wed, 30 Jan 2008 16:07:59 +0000 (16:07 +0000)
function do_client_version

SVN Revision: 1166

ChangeLog
src/mod_echo.erl

index a9fe9b2fe3f734e0c8b6d083403cf9140e4a8a14..e26e9a35de0a135a4e322b5a97ac7b379f24f8a1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-01-30  Badlop  <badlop@process-one.net>
+
+       * src/mod_echo.erl: Put in comments the call to the educational
+       function do_client_version
+
 2008-01-29  Badlop  <badlop@process-one.net>
 
        * src/mod_muc/mod_muc_room.erl: MUC kicks a participant if sends a
index 3a4f0e38f5fb78cce2b8662a845065d6439a8f34..48d373ae4c7559de18b561d4688018be3c205157 100644 (file)
@@ -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. 
 %%