plugins/mod_pep_plus.lua
changeset 8345 0c0990a575de
parent 8344 910d3c3f60a6
child 8380 58cdbbe3b86a
equal deleted inserted replaced
8344:910d3c3f60a6 8345:0c0990a575de
   414 	reply:tag('identity', {category='pubsub', type='pep'}):up();
   414 	reply:tag('identity', {category='pubsub', type='pep'}):up();
   415 
   415 
   416 	local username = jid_split(reply.attr.from) or origin.username;
   416 	local username = jid_split(reply.attr.from) or origin.username;
   417 	local service = get_pep_service(username);
   417 	local service = get_pep_service(username);
   418 
   418 
   419 	local suppored_features = lib_pubsub.get_feature_set(service) + set.new{
   419 	local supported_features = lib_pubsub.get_feature_set(service) + set.new{
   420 		-- Features not covered by the above
   420 		-- Features not covered by the above
   421 		"access-presence",
   421 		"access-presence",
   422 		"auto-subscribe",
   422 		"auto-subscribe",
   423 		"filtered-notifications",
   423 		"filtered-notifications",
   424 		"last-published",
   424 		"last-published",
   425 		"persistent-items",
   425 		"persistent-items",
   426 		"presence-notifications",
   426 		"presence-notifications",
   427 		"presence-subscribe",
   427 		"presence-subscribe",
   428 	};
   428 	};
   429 
   429 
   430 	for feature in suppored_features do
   430 	for feature in supported_features do
   431 		reply:tag('feature', {var=xmlns_pubsub.."#"..feature}):up();
   431 		reply:tag('feature', {var=xmlns_pubsub.."#"..feature}):up();
   432 	end
   432 	end
   433 end);
   433 end);
   434 
   434 
   435 module:hook("account-disco-items-node", function(event)
   435 module:hook("account-disco-items-node", function(event)