plugins/mod_pep_plus.lua
changeset 9064 82dd435c942c
parent 9033 7d0b7e086c6a
child 9077 0462405b1cfb
equal deleted inserted replaced
9063:69bc3144c2b7 9064:82dd435c942c
   421 	if is_self then
   421 	if is_self then
   422 		-- Optimization: Fiddle with other local users
   422 		-- Optimization: Fiddle with other local users
   423 		for jid, item in pairs(origin.roster) do -- for all interested contacts
   423 		for jid, item in pairs(origin.roster) do -- for all interested contacts
   424 			if jid then
   424 			if jid then
   425 				local contact_node, contact_host = jid_split(jid);
   425 				local contact_node, contact_host = jid_split(jid);
   426 				if contact_host == host and item.subscription == "both" or item.subscription == "from" then
   426 				if contact_host == host and (item.subscription == "both" or item.subscription == "from") then
   427 					update_subscriptions(user_bare, contact_node, notify);
   427 					update_subscriptions(user_bare, contact_node, notify);
   428 				end
   428 				end
   429 			end
   429 			end
   430 		end
   430 		end
   431 	end
   431 	end