moduleapi: Add :get_option_integer()

Many options in Prosody that are treated as numbers don't make sense as
floats, e.g. sizes and limits measured in bytes.

Simplified implementation based on an earlier attempt dating back to 2020
This commit is contained in:
Kim Alvefur 2023-07-17 00:09:41 +02:00
parent c222b08005
commit 210f608086
4 changed files with 17 additions and 0 deletions

View file

@ -43,6 +43,7 @@ TRUNK
- Config interface API can require that string values be picked from a provided set
- Acceptable interval can be specified for number options
- Method for parsing time periods / intervals from config
- Method for retrieving integer settings from config
## Changes