25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

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.
This commit is contained in:
Holger Weiss 2015-08-05 00:05:11 +02:00
parent 13f7be682d
commit c0497d46af
2 changed files with 3 additions and 5 deletions

View File

@ -577,9 +577,7 @@ modules:
mod_blocking: {} # requires mod_privacy mod_blocking: {} # requires mod_privacy
mod_caps: {} mod_caps: {}
mod_carboncopy: {} mod_carboncopy: {}
mod_client_state: mod_client_state: {}
drop_chat_states: true
queue_presence: false
mod_configure: {} # requires mod_adhoc mod_configure: {} # requires mod_adhoc
mod_disco: {} mod_disco: {}
## mod_echo: {} ## mod_echo: {}

View File

@ -42,11 +42,11 @@ start(Host, Opts) ->
QueuePresence = gen_mod:get_opt(queue_presence, Opts, QueuePresence = gen_mod:get_opt(queue_presence, Opts,
fun(true) -> true; fun(true) -> true;
(false) -> false (false) -> false
end, false), end, true),
DropChatStates = gen_mod:get_opt(drop_chat_states, Opts, DropChatStates = gen_mod:get_opt(drop_chat_states, Opts,
fun(true) -> true; fun(true) -> true;
(false) -> false (false) -> false
end, false), end, true),
if QueuePresence; DropChatStates -> if QueuePresence; DropChatStates ->
ejabberd_hooks:add(c2s_post_auth_features, Host, ?MODULE, ejabberd_hooks:add(c2s_post_auth_features, Host, ?MODULE,
add_stream_feature, 50), add_stream_feature, 50),