plugins/mod_pubsub.lua

changeset 3912
dfc9789f9016
parent 3911
a99a2bb7a6ec
child 3913
e748d29b18d6
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({

mercurial