Software /
code /
prosody
Changeset
3912:dfc9789f9016
mod_pubsub: Make the pubsub host an admin too
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 21 Dec 2010 03:29:29 +0000 |
parents | 3911:a99a2bb7a6ec |
children | 3913:e748d29b18d6 |
files | plugins/mod_pubsub.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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