MUC: Provide options as options in config form (fixes traceback)
authorKim Alvefur <zash@zash.se>
Sat, 04 Aug 2018 23:12:52 +0200
changeset 9115 e66d932eeb58
parent 9114 bc7473fb7ad3
child 9116 74639d606a15
MUC: Provide options as options in config form (fixes traceback)
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' }
 		}