Software /
code /
prosody
Changeset
7708:c420a38db5ef
Backed out changeset f1af4edd5722, doesn't work as intended (node is the name of the node and always present)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 18 Oct 2016 22:47:26 +0200 |
parents | 7703:74e755674e0f |
children | 7709:0af1783d1592 |
files | plugins/mod_pubsub/mod_pubsub.lua |
diffstat | 1 files changed, 1 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_pubsub/mod_pubsub.lua Tue Oct 18 15:29:23 2016 +0200 +++ b/plugins/mod_pubsub/mod_pubsub.lua Tue Oct 18 22:47:26 2016 +0200 @@ -126,15 +126,11 @@ end); local admin_aff = module:get_option_string("default_admin_affiliation", "owner"); -local unowned_aff = module:get_option_string("default_unowned_affiliation"); -local function get_affiliation(jid, node) +local function get_affiliation(jid) local bare_jid = jid_bare(jid); if bare_jid == module.host or usermanager.is_admin(bare_jid, module.host) then return admin_aff; end - if not node then - return unowned_aff; - end end function set_service(new_service)