summaryrefslogtreecommitdiff
path: root/src/mod_client_state.erl
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2016-06-29 22:22:49 +0200
committerHolger Weiss <holger@zedat.fu-berlin.de>2016-06-29 22:22:49 +0200
commit10d4c16a974a542e07f8abc9b4cc77d324045431 (patch)
tree02421e19818ee2613adb3146bc1a545cf8795a11 /src/mod_client_state.erl
parentAllow generation of oauth tokens from command line (diff)
mod_client_state: Throttle PEP stanzas by default
Diffstat (limited to 'src/mod_client_state.erl')
-rw-r--r--src/mod_client_state.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mod_client_state.erl b/src/mod_client_state.erl
index 651f15c2..fe66f34e 100644
--- a/src/mod_client_state.erl
+++ b/src/mod_client_state.erl
@@ -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),