]> granicus.if.org Git - ejabberd/commitdiff
mod_client_state: Throttle PEP stanzas by default
authorHolger Weiss <holger@zedat.fu-berlin.de>
Wed, 29 Jun 2016 20:22:49 +0000 (22:22 +0200)
committerHolger Weiss <holger@zedat.fu-berlin.de>
Wed, 29 Jun 2016 20:22:49 +0000 (22:22 +0200)
src/mod_client_state.erl

index 651f15c25d32268cef114c72d0a4f9686e8668cb..fe66f34e23cdcc7c0e26ea7d8f67d8c96acd2baa 100644 (file)
@@ -66,7 +66,7 @@ start(Host, Opts) ->
     QueuePEP =
        gen_mod:get_opt(queue_pep, Opts,
                        fun(B) when is_boolean(B) -> B end,
-                       false),
+                       true),
     if QueuePresence; QueueChatStates; QueuePEP ->
           ejabberd_hooks:add(c2s_post_auth_features, Host, ?MODULE,
                              add_stream_feature, 50),
@@ -106,7 +106,7 @@ stop(Host) ->
     QueuePEP =
        gen_mod:get_module_opt(Host, ?MODULE, queue_pep,
                               fun(B) when is_boolean(B) -> B end,
-                              false),
+                              true),
     if QueuePresence; QueueChatStates; QueuePEP ->
           ejabberd_hooks:delete(c2s_post_auth_features, Host, ?MODULE,
                                 add_stream_feature, 50),