diff options
author | Kim Alvefur <zash@zash.se> | 2017-03-16 20:46:06 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2017-03-16 20:46:06 +0100 |
commit | fb749e207600e861af3f836a0316ad97fb41e553 (patch) | |
tree | 3eb037d679778fc3effcf9e0c850e8b6b781b032 /plugins/mod_disco.lua | |
parent | 91262e2bc848551822a25cad697d6d660dd5301e (diff) | |
download | prosody-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.lua | 2 |
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; |