mirror of
https://github.com/processone/ejabberd.git
synced 2024-06-08 21:43:07 +02:00
mod_client_state: Throttle PEP stanzas by default
This commit is contained in:
parent
ce0d1704c6
commit
10d4c16a97
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue
Block a user