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
commitc3d7d52f0df686f7cfd5ee6c6474edf6e206c5c0 (patch)
tree3eb037d679778fc3effcf9e0c850e8b6b781b032 /plugins/mod_disco.lua
parent0bf98e614f8ce41994280fabf07738c5c22404bf (diff)
downloadprosody-c3d7d52f0df686f7cfd5ee6c6474edf6e206c5c0.tar.gz
prosody-c3d7d52f0df686f7cfd5ee6c6474edf6e206c5c0.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;