aboutsummaryrefslogtreecommitdiffstats
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
commit83881eaed9b8201ec177bd5a1ef80fc5f6d8dc49 (patch)
treec54750ab3b7a5ed57c0588c493b9ac02498a6a09
parent2f1b93f5e9562d885bc974066748b32dc3936133 (diff)
downloadprosody-83881eaed9b8201ec177bd5a1ef80fc5f6d8dc49.tar.gz
prosody-83881eaed9b8201ec177bd5a1ef80fc5f6d8dc49.zip
MUC: Provide options as options in config form (fixes traceback)
-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' }
}