aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_register_limits.lua
Commit message (Collapse)AuthorAgeFilesLines
* plugins: Use integer config API with interval specification where sensibleKim Alvefur2023-07-171-2/+2
| | | | | | | Many of these fall into a few categories: - util.cache size, must be >= 1 - byte or item counts that logically can't be negative - port numbers that should be in 1..0xffff
* plugins: Switch to :get_option_period() for time range optionsKim Alvefur2023-07-161-2/+2
| | | | Improves readability ("1 day" vs 86400) and centralizes validation.
* plugins: Prefix module imports with prosody namespaceKim Alvefur2023-03-241-4/+4
|
* mod_register_limits: Reword some optionsKim Alvefur2021-09-191-19/+21
| | | | Remember to remove the compatibility things in some future version
* mod_register_limits: Fix text reason field name for 'throttled'Kim Alvefur2020-04-231-1/+1
| | | | Copy-paste mistake presumably
* mod_register_limits: Fix typo error name (fix #1539 p2) (thanks Ge0rG)Kim Alvefur2020-04-231-1/+1
| | | | Probably because autocomplete.
* mod_register_limits: Fix order of arguments to util.error (fix #1539 p1) ↵Kim Alvefur2020-04-231-3/+3
| | | | (thanks Ge0rG)
* mod_register_limits: Use util.error for managing rejection reasonsKim Alvefur2019-11-011-9/+28
|
* mod_register_ibr, mod_register_limits: Add support for custom error type and ↵Emmanuel Gil Peyrot2019-09-291-0/+6
| | | | defined-condition.
* mod_register_limits: Promote log message about inability to apply ↵Kim Alvefur2018-04-101-1/+1
| | | | black/whitelists to a warning
* mod_register_limits: Change debug message wording, there's no user yetKim Alvefur2018-04-101-1/+1
|
* mod_register_limits: Use existing local variableKim Alvefur2018-04-101-2/+2
|
* mod_register_limits: Return reason for disallowingKim Alvefur2018-03-101-0/+3
|
* mod_register_limits: Log message for white- and blacklist hits separateKim Alvefur2018-03-101-2/+5
|
* mod_register_limits: Log a debug message when disallowing registration by ↵Kim Alvefur2018-03-101-0/+1
| | | | ewhite- or blacklist
* mod_register_ibr: Split out throttling and IP limitations into ↵Kim Alvefur2017-12-091-0/+71
mod_register_limits (#723)