Comparison

plugins/mod_pubsub.lua @ 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
parent 3911:a99a2bb7a6ec
child 3913:e748d29b18d6
comparison
equal deleted inserted replaced
3911:a99a2bb7a6ec 3912:dfc9789f9016
201 return true; 201 return true;
202 end); 202 end);
203 203
204 local admin_aff = module:get_option_string("default_admin_affiliation", "owner"); 204 local admin_aff = module:get_option_string("default_admin_affiliation", "owner");
205 local function get_affiliation(jid) 205 local function get_affiliation(jid)
206 if usermanager.is_admin(jid, module.host) then 206 if jid == module.host or usermanager.is_admin(jid, module.host) then
207 return admin_aff; 207 return admin_aff;
208 end 208 end
209 end 209 end
210 210
211 service = pubsub.new({ 211 service = pubsub.new({