Software /
code /
prosody
Diff
plugins/mod_pubsub/mod_pubsub.lua @ 13202:173038306750
plugins: Use get_option_enum where appropriate
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 16 Jan 2021 21:04:58 +0100 |
parent | 12977:74b9e05af71e |
child | 13213:50324f66ca2a |
line wrap: on
line diff
--- a/plugins/mod_pubsub/mod_pubsub.lua Sat Jan 16 20:40:14 2021 +0100 +++ b/plugins/mod_pubsub/mod_pubsub.lua Sat Jan 16 21:04:58 2021 +0100 @@ -179,7 +179,7 @@ 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);