# HG changeset patch # User Matthew Wild # Date 1292902169 0 # Node ID dfc9789f90169e0b2ab94336e874a041db994c72 # Parent a99a2bb7a6ecf17da605b19958cdc010d1771749 mod_pubsub: Make the pubsub host an admin too diff -r a99a2bb7a6ec -r dfc9789f9016 plugins/mod_pubsub.lua --- 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