Diff

plugins/mod_disco.lua @ 7977:01d6298de991

plugins/various: Use type-specific config API
author Kim Alvefur <zash@zash.se>
date Thu, 16 Mar 2017 20:46:06 +0100
parent 7787:200f1f6306a7
child 8003:15973ade9a11
line wrap: on
line diff
--- a/plugins/mod_disco.lua	Thu Mar 16 19:09:57 2017 +0100
+++ b/plugins/mod_disco.lua	Thu Mar 16 20:46:06 2017 +0100
@@ -13,7 +13,7 @@
 local st = require "util.stanza"
 local calculate_hash = require "util.caps".calculate_hash;
 
-local disco_items = module:get_option("disco_items") or {};
+local disco_items = module:get_option_array("disco_items", {})
 do -- validate disco_items
 	for _, item in ipairs(disco_items) do
 		local err;