Software /
code /
prosody
Diff
plugins/mod_pubsub.lua @ 3919:e288372dd19f
mod_pubsub: Use bare JID in get_affiliation
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 21 Dec 2010 04:36:34 +0000 |
parent | 3918:f30c5bad29b8 |
child | 3932:aa245e43b21e |
line wrap: on
line diff
--- 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