aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-12-21 04:36:34 +0000
committerMatthew Wild <mwild1@gmail.com>2010-12-21 04:36:34 +0000
commit0297ce2257db6cc83c94faa54abd5ea7de215031 (patch)
treee3cb4af9ebdb4653849a4eb65b4c5375c295448d /plugins
parent7aa49716a289009be1ecf69c1d74ec8f70421bd3 (diff)
downloadprosody-0297ce2257db6cc83c94faa54abd5ea7de215031.tar.gz
prosody-0297ce2257db6cc83c94faa54abd5ea7de215031.zip
mod_pubsub: Use bare JID in get_affiliation
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_pubsub.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/mod_pubsub.lua b/plugins/mod_pubsub.lua
index e2b0f2fd..841de147 100644
--- a/plugins/mod_pubsub.lua
+++ b/plugins/mod_pubsub.lua
@@ -236,7 +236,8 @@ end);
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