diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2016-06-29 22:22:49 +0200 |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2016-06-29 22:22:49 +0200 |
commit | 10d4c16a974a542e07f8abc9b4cc77d324045431 (patch) | |
tree | 02421e19818ee2613adb3146bc1a545cf8795a11 /src/mod_client_state.erl | |
parent | Allow 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.erl | 4 |
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), |