Comparison

plugins/mod_pep.lua @ 9607:2a42b72468ca

mod_pep: Remove incorrect features advertised on the bare host
author Kim Alvefur <zash@zash.se>
date Thu, 01 Nov 2018 23:58:41 +0100
parent 9597:17d43543f9b6
child 9721:233305015373
comparison
equal deleted inserted replaced
9606:cb684a0ded2a 9607: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");