diff options
author | Kim Alvefur <zash@zash.se> | 2021-01-16 21:04:58 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2021-01-16 21:04:58 +0100 |
commit | a8b0c56f656fcd3fca033dc5f3154a4d8a2464a2 (patch) | |
tree | 622eea2bf7444475db1e24fbe0d6bc49d980654d /plugins/mod_pubsub | |
parent | c4abd68e92a258750177f25dca38525fe3133063 (diff) | |
download | prosody-a8b0c56f656fcd3fca033dc5f3154a4d8a2464a2.tar.gz prosody-a8b0c56f656fcd3fca033dc5f3154a4d8a2464a2.zip |
plugins: Use get_option_enum where appropriate
Diffstat (limited to 'plugins/mod_pubsub')
-rw-r--r-- | plugins/mod_pubsub/mod_pubsub.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_pubsub/mod_pubsub.lua b/plugins/mod_pubsub/mod_pubsub.lua index 088f6a87..40a87581 100644 --- a/plugins/mod_pubsub/mod_pubsub.lua +++ b/plugins/mod_pubsub/mod_pubsub.lua @@ -179,7 +179,7 @@ module:hook("host-disco-items", function (event) end end); -local admin_aff = module:get_option_string("default_admin_affiliation", "owner"); +local admin_aff = module:get_option_enum("default_admin_affiliation", "owner", "publisher", "member", "outcast", "none"); module:default_permission("prosody:admin", ":service-admin"); local function get_affiliation(jid) local bare_jid = jid_bare(jid); |