]> granicus.if.org Git - ejabberd/commitdiff
Add comment about ping requests sent even to non-supporting clients
authorBadlop <badlop@process-one.net>
Thu, 4 Aug 2011 16:32:45 +0000 (18:32 +0200)
committerBadlop <badlop@process-one.net>
Thu, 4 Aug 2011 16:32:45 +0000 (18:32 +0200)
src/mod_ping.erl

index 37002848e0f95f32d4610ed0cafcd5e4ac0e1ba3..11c7a138d65c14d74904439797f0eb9fb6725152 100644 (file)
@@ -104,6 +104,8 @@ init([HostB, Opts]) ->
                                   ?MODULE, iq_ping, IQDisc),
     case SendPings of
         true ->
+           %% Ping requests are sent to all entities, whether they
+           %% announce 'urn:xmpp:ping' in their caps or not
             ejabberd_hooks:add(sm_register_connection_hook, HostB,
                                ?MODULE, user_online, 100),
             ejabberd_hooks:add(sm_remove_connection_hook, HostB,