From c0497d46afcb6e3dd7b744e364e756e0b7a36f7e Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Wed, 5 Aug 2015 00:05:11 +0200 Subject: mod_client_state: Throttle stanzas by default Enable the mod_client_state options "drop_chat_states" and "queue_presence" by default. These features are now well-tested in practice. --- src/mod_client_state.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/mod_client_state.erl b/src/mod_client_state.erl index bb0d962ff..eb40db109 100644 --- a/src/mod_client_state.erl +++ b/src/mod_client_state.erl @@ -42,11 +42,11 @@ start(Host, Opts) -> QueuePresence = gen_mod:get_opt(queue_presence, Opts, fun(true) -> true; (false) -> false - end, false), + end, true), DropChatStates = gen_mod:get_opt(drop_chat_states, Opts, fun(true) -> true; (false) -> false - end, false), + end, true), if QueuePresence; DropChatStates -> ejabberd_hooks:add(c2s_post_auth_features, Host, ?MODULE, add_stream_feature, 50), -- cgit v1.2.3