MUC: Provide options as options in config form (fixes traceback)

This commit is contained in:
Kim Alvefur 2018-08-04 23:12:52 +02:00
parent 2f1b93f5e9
commit 83881eaed9

View file

@ -34,7 +34,7 @@ module:hook("muc-config-form", function(event)
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' }
}