aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-08-04 23:12:52 +0200
committerKim Alvefur <zash@zash.se>2018-08-04 23:12:52 +0200
commitf127fcd15f9bf84eaa77d4b938d2bf4884fef92a (patch)
treec54750ab3b7a5ed57c0588c493b9ac02498a6a09 /plugins
parentda42eb7404d8d292ac4daa3e913237594287fdae (diff)
downloadprosody-f127fcd15f9bf84eaa77d4b938d2bf4884fef92a.tar.gz
prosody-f127fcd15f9bf84eaa77d4b938d2bf4884fef92a.zip
MUC: Provide options as options in config form (fixes traceback)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/muc/whois.lib.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/muc/whois.lib.lua b/plugins/muc/whois.lib.lua
index f3070ddf..636d7c59 100644
--- a/plugins/muc/whois.lib.lua
+++ b/plugins/muc/whois.lib.lua
@@ -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' }
}