Diff

plugins/mod_csi_simple.lua @ 13213:50324f66ca2a

plugins: Use integer config API with interval specification where sensible 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
author Kim Alvefur <zash@zash.se>
date Mon, 17 Jul 2023 01:38:54 +0200
parent 13209:c8d949cf6b09
line wrap: on
line diff
--- a/plugins/mod_csi_simple.lua	Mon Jul 17 00:37:44 2023 +0200
+++ b/plugins/mod_csi_simple.lua	Mon Jul 17 01:38:54 2023 +0200
@@ -12,7 +12,7 @@
 local filters = require "prosody.util.filters";
 local timer = require "prosody.util.timer";
 
-local queue_size = module:get_option_number("csi_queue_size", 256);
+local queue_size = module:get_option_integer("csi_queue_size", 256, 1);
 local resume_delay = module:get_option_period("csi_resume_inactive_delay", 5);
 
 local important_payloads = module:get_option_set("csi_important_payloads", { });