# HG changeset patch # User Kim Alvefur # Date 1533417172 -7200 # Node ID e66d932eeb58dae0e8169d60dcdd091bb0307d1c # Parent bc7473fb7ad30b9fb9d920f448febe96516b4ebd MUC: Provide options as options in config form (fixes traceback) diff -r bc7473fb7ad3 -r e66d932eeb58 plugins/muc/whois.lib.lua --- a/plugins/muc/whois.lib.lua Sat Aug 04 23:12:41 2018 +0200 +++ b/plugins/muc/whois.lib.lua Sat Aug 04 23:12:52 2018 +0200 @@ -34,7 +34,7 @@ name = 'muc#roomconfig_whois', type = 'list-single', label = 'Addresses (JIDs) of room occupants may be viewed by:', - value = { + options = { { value = 'moderators', label = 'Moderators only', default = whois == 'moderators' }, { value = 'anyone', label = 'Anyone', default = whois == 'anyone' } }