aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2015-08-05 00:05:11 +0200
committerHolger Weiss <holger@zedat.fu-berlin.de>2015-08-05 00:05:11 +0200
commitc0497d46afcb6e3dd7b744e364e756e0b7a36f7e (patch)
tree21e7fa791aa79088d353856e64fb0d4b72aee2d1
parentRename muc_filter_packet to muc_filter_message (diff)
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.
-rw-r--r--ejabberd.yml.example4
-rw-r--r--src/mod_client_state.erl4
2 files changed, 3 insertions, 5 deletions
diff --git a/ejabberd.yml.example b/ejabberd.yml.example
index c57ef4657..b4278eed4 100644
--- a/ejabberd.yml.example
+++ b/ejabberd.yml.example
@@ -577,9 +577,7 @@ modules:
mod_blocking: {} # requires mod_privacy
mod_caps: {}
mod_carboncopy: {}
- mod_client_state:
- drop_chat_states: true
- queue_presence: false
+ mod_client_state: {}
mod_configure: {} # requires mod_adhoc
mod_disco: {}
## mod_echo: {}
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),