Kim Alvefur
|
1987a7411f
|
plugins: Switch to :get_option_period() for time range options
Improves readability ("1 day" vs 86400) and centralizes validation.
|
2 years ago |
Kim Alvefur
|
98922d54b1
|
plugins: Prefix module imports with prosody namespace
|
3 years ago |
Matthew Wild
|
6f6c807bdf
|
mod_limits: Use default limits if none configured
|
5 years ago |
Matthew Wild
|
08f721a072
|
mod_limits: Don't emit error when no burst period is configured
|
5 years ago |
Kim Alvefur
|
9dd9cb4392
|
mod_limits: Extend unlimited_jids to s2s sessions (for Ge0rG)
This makes unlimited_jids also work for s2s connections, assuming the
remote server has been identified.
|
4 years ago |
Kim Alvefur
|
5d73586b4f
|
mod_limits: Factor out function for disabling limits allowing use from shell
Also enables reuse for s2s, which we will add next.
|
4 years ago |
Kim Alvefur
|
7c8ad7bede
|
mod_limits: Remove an unused variable
Hope this isn't meant to be used. 'outstanding' seems to be the more
useful value anyways?
|
6 years ago |
Kim Alvefur
|
40b1e3e0ed
|
plugins: Remove tostring call from logging
Taken care of by loggingmanager now
Mass-rewrite using lua pattern like `tostring%b()`
|
7 years ago |
Kim Alvefur
|
9df663276b
|
mod_limits: Use rate limiting in net.server if provided
This should be simpler and more efficient, as well avoid problems caused
by using filters.
|
7 years ago |
Kim Alvefur
|
337c4dea6f
|
mod_limits: Fix typo in comment
|
8 years ago |
Matthew Wild
|
14304764d8
|
mod_limits: Handle fractional outstanding balance values (caused by e3f7b6fa46ba)
Fractional values were passed to string.sub() when doing buffer manipulations, and
caused random bytes to be skipped in the stream.
|
8 years ago |
Matthew Wild
|
9f73fcbf8a
|
mod_limits: Import from prosody-modules 2c59f2f0c37d (fixes #129)
|
8 years ago |
Kim Alvefur
|
7537a96433
|
mod_limits: Rename variable to avoid name clash [luacheck]
FIXME better name, s_throttle doesn't seem nice
|
8 years ago |
Kim Alvefur
|
e632119ffa
|
mod_limits: Fix typo
|
7 years ago |
Kim Alvefur
|
1b534392de
|
mod_limits: Allow configuring a list of unrestricted JIDs (fixes #1323)
|
7 years ago |
Kim Alvefur
|
a6571e3ef3
|
mod_limits: Fix indentation
Appears to have been messed up in 60e113f3682f
|
7 years ago |