aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_pubsub.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-12-21 03:29:29 +0000
committerMatthew Wild <mwild1@gmail.com>2010-12-21 03:29:29 +0000
commit21e2340f1fd008719223f585d5162fe4378c4430 (patch)
tree42423b9fc315c48abc268ff54780c39324e137af /plugins/mod_pubsub.lua
parentd12133b6149d70fa19a95fc257f799fc5b8193d1 (diff)
downloadprosody-21e2340f1fd008719223f585d5162fe4378c4430.tar.gz
prosody-21e2340f1fd008719223f585d5162fe4378c4430.zip
mod_pubsub: Make the pubsub host an admin too
Diffstat (limited to 'plugins/mod_pubsub.lua')
-rw-r--r--plugins/mod_pubsub.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_pubsub.lua b/plugins/mod_pubsub.lua
index b7c04163..1603676b 100644
--- a/plugins/mod_pubsub.lua
+++ b/plugins/mod_pubsub.lua
@@ -203,7 +203,7 @@ end);
local admin_aff = module:get_option_string("default_admin_affiliation", "owner");
local function get_affiliation(jid)
- if usermanager.is_admin(jid, module.host) then
+ if jid == module.host or usermanager.is_admin(jid, module.host) then
return admin_aff;
end
end