aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_disco.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-03-16 20:46:06 +0100
committerKim Alvefur <zash@zash.se>2017-03-16 20:46:06 +0100
commitfb749e207600e861af3f836a0316ad97fb41e553 (patch)
tree3eb037d679778fc3effcf9e0c850e8b6b781b032 /plugins/mod_disco.lua
parent91262e2bc848551822a25cad697d6d660dd5301e (diff)
downloadprosody-fb749e207600e861af3f836a0316ad97fb41e553.tar.gz
prosody-fb749e207600e861af3f836a0316ad97fb41e553.zip
plugins/various: Use type-specific config API
Diffstat (limited to 'plugins/mod_disco.lua')
-rw-r--r--plugins/mod_disco.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_disco.lua b/plugins/mod_disco.lua
index c9d4a9df..517fcaec 100644
--- a/plugins/mod_disco.lua
+++ b/plugins/mod_disco.lua
@@ -13,7 +13,7 @@ local jid_bare = require "util.jid".bare;
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;