Software /
code /
prosody
Changeset
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 |
parents | 3918:f30c5bad29b8 |
children | 3926:e76285349ba3 |
files | plugins/mod_pubsub.lua |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
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