aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_limits.lua
Commit message (Collapse)AuthorAgeFilesLines
* mod_limits: Factor out function for disabling limits allowing use from shellKim Alvefur2021-07-291-9/+13
| | | | Also enables reuse for s2s, which we will add next.
* Merge 0.11->trunkMatthew Wild2021-05-131-2/+11
|\
| * mod_limits: Use default limits if none configuredMatthew Wild2021-05-111-1/+10
| |
| * mod_limits: Don't emit error when no burst period is configuredMatthew Wild2021-05-111-1/+1
| |
* | mod_limits: Remove an unused variableKim Alvefur2019-12-231-1/+1
| | | | | | | | | | Hope this isn't meant to be used. 'outstanding' seems to be the more useful value anyways?
* | plugins: Remove tostring call from loggingKim Alvefur2019-07-301-1/+1
| | | | | | | | | | | | Taken care of by loggingmanager now Mass-rewrite using lua pattern like `tostring%b()`
* | mod_limits: Use rate limiting in net.server if providedKim Alvefur2019-03-291-5/+15
| | | | | | | | | | This should be simpler and more efficient, as well avoid problems caused by using filters.
* | mod_limits: Fix typoKim Alvefur2019-04-021-1/+1
| |
* | mod_limits: Allow configuring a list of unrestricted JIDs (fixes #1323)Kim Alvefur2019-04-021-0/+17
| |
* | mod_limits: Fix indentationKim Alvefur2019-04-021-5/+5
|/ | | | Appears to have been messed up in 60e113f3682f
* mod_limits: Rename variable to avoid name clash [luacheck]Kim Alvefur2018-05-021-5/+5
| | | | FIXME better name, s_throttle doesn't seem nice
* mod_limits: Fix typo in commentKim Alvefur2017-12-051-1/+1
|
* mod_limits: Handle fractional outstanding balance values (caused by ↵Matthew Wild2017-09-261-0/+2
| | | | | | | e3f7b6fa46ba) Fractional values were passed to string.sub() when doing buffer manipulations, and caused random bytes to be skipped in the stream.
* mod_limits: Import from prosody-modules 2c59f2f0c37d (fixes #129)Matthew Wild2017-09-231-0/+96