equal
deleted
inserted
replaced
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"); |