Tue, 21 Dec 2010 03:29:29 +0000
mod_pubsub: Make the pubsub host an admin too
plugins/mod_pubsub.lua | file | annotate | diff | comparison | revisions |
--- a/plugins/mod_pubsub.lua Tue Dec 21 03:27:22 2010 +0000 +++ b/plugins/mod_pubsub.lua Tue Dec 21 03:29:29 2010 +0000 @@ -203,7 +203,7 @@ 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