comparison mod_delegation/mod_delegation.lua @ 4616:377546ab50f9

mod_delegation: fix bare jid disco nesting bare jid info discovery hook has been accidentally removed a while ago, as a result disco nesting for bare jids was not working anymore.
author Goffi <goffi@goffi.org>
date Sat, 10 Jul 2021 16:48:28 +0200
parents c5e8042b174c
children 679f1834dbdb
comparison
equal deleted inserted replaced
4615:451514e2d369 4616:377546ab50f9
538 for _, stanza in ipairs(bare_extensions) do 538 for _, stanza in ipairs(bare_extensions) do
539 reply:add_child(stanza) 539 reply:add_child(stanza)
540 end 540 end
541 541
542 end 542 end
543 module:hook("account-disco-info", disco_hook, -2^32)
543 544
544 -- disco#items 545 -- disco#items
545 546
546 local function disco_items_node_hook(event) 547 local function disco_items_node_hook(event)
547 -- check if node is not handled by server 548 -- check if node is not handled by server