plugins/mod_pep.lua
changeset 9611 2a42b72468ca
parent 9601 17d43543f9b6
child 9725 233305015373
equal deleted inserted replaced
9610:cb684a0ded2a 9611:2a42b72468ca
   247 	return lib_pubsub.handle_pubsub_iq(event, service)
   247 	return lib_pubsub.handle_pubsub_iq(event, service)
   248 end
   248 end
   249 
   249 
   250 module:hook("iq/bare/"..xmlns_pubsub..":pubsub", handle_pubsub_iq);
   250 module:hook("iq/bare/"..xmlns_pubsub..":pubsub", handle_pubsub_iq);
   251 module:hook("iq/bare/"..xmlns_pubsub_owner..":pubsub", handle_pubsub_iq);
   251 module:hook("iq/bare/"..xmlns_pubsub_owner..":pubsub", handle_pubsub_iq);
   252 
       
   253 module:add_identity("pubsub", "pep", module:get_option_string("name", "Prosody"));
       
   254 module:add_feature("http://jabber.org/protocol/pubsub#publish");
       
   255 
   252 
   256 local function get_caps_hash_from_presence(stanza, current)
   253 local function get_caps_hash_from_presence(stanza, current)
   257 	local t = stanza.attr.type;
   254 	local t = stanza.attr.type;
   258 	if not t then
   255 	if not t then
   259 		local child = stanza:get_child("c", "http://jabber.org/protocol/caps");
   256 		local child = stanza:get_child("c", "http://jabber.org/protocol/caps");