diff mod_muc_limits/README.markdown @ 5601:6680a1f53353

mod_muc_limits: Reduce cost of multi-line messages, make configurable Typing a 5-line message preceded by a few chat states would have hit the default limit.
author Kim Alvefur <zash@zash.se>
date Sat, 15 Jul 2023 09:09:41 +0200
parents d52cc18f0aa8
children bae2f4830a93
line wrap: on
line diff
--- a/mod_muc_limits/README.markdown	Fri Jul 14 16:20:54 2023 +0200
+++ b/mod_muc_limits/README.markdown	Sat Jul 15 09:09:41 2023 +0200
@@ -35,13 +35,15 @@
 
 You can define (globally or per-MUC component) the following options:
 
-  Name                  Default value   Description
-  --------------------- --------------- --------------------------------------------------
-  muc_event_rate        0.5             The maximum number of events per second.
-  muc_burst_factor      6               Allow temporary bursts of this multiple.
-  muc_max_nick_length   23              The maximum allowed length of user nicknames
-  muc_max_char_count    5664            The maximum allowed number of bytes in a message
-  muc_max_line_count    23              The maximum allowed number of lines in a message
+  Name                        Default value   Description
+  --------------------------- --------------- ----------------------------------------------------------
+  muc_event_rate              0.5             The maximum number of events per second.
+  muc_burst_factor            6               Allow temporary bursts of this multiple.
+  muc_max_nick_length         23              The maximum allowed length of user nicknames
+  muc_max_char_count          5664            The maximum allowed number of bytes in a message
+  muc_max_line_count          23              The maximum allowed number of lines in a message
+  muc_limit_base_cost         1               Base cost of sending a stanza
+  muc_line_count_multiplier   0.1             Additional cost of each newline in the body of a message
 
 For more understanding of how these values are used, see the algorithm
 section below.