# HG changeset patch # User Matthew Wild # Date 1292906194 0 # Node ID e288372dd19f5d4834513125321ed772a2ffb797 # Parent f30c5bad29b80cf9b7bd4ca5abff90dee6c65374 mod_pubsub: Use bare JID in get_affiliation diff -r f30c5bad29b8 -r e288372dd19f plugins/mod_pubsub.lua --- a/plugins/mod_pubsub.lua Tue Dec 21 04:18:58 2010 +0000 +++ b/plugins/mod_pubsub.lua Tue Dec 21 04:36:34 2010 +0000 @@ -236,7 +236,8 @@ local admin_aff = module:get_option_string("default_admin_affiliation", "owner"); local function get_affiliation(jid) - if jid == module.host or usermanager.is_admin(jid, module.host) then + local bare_jid = jid_bare(jid); + if bare_jid == module.host or usermanager.is_admin(bare_jid, module.host) then return admin_aff; end end