diff options
author | Kim Alvefur <zash@zash.se> | 2020-11-10 14:46:49 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2020-11-10 14:46:49 +0100 |
commit | d741e95ccd91fc4d156f8c21e20b1b5b4bebdc5c (patch) | |
tree | d35d21f16bffa4e369667401e4029a51dd1b08ed | |
parent | 020cd46f0341663d71ebdbd02f67032ddcb4a677 (diff) | |
download | prosody-d741e95ccd91fc4d156f8c21e20b1b5b4bebdc5c.tar.gz prosody-d741e95ccd91fc4d156f8c21e20b1b5b4bebdc5c.zip |
mod_disco: Add some spacing to improve readability and code navigation
-rw-r--r-- | plugins/mod_disco.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/mod_disco.lua b/plugins/mod_disco.lua index a5479f4c..a19ec32b 100644 --- a/plugins/mod_disco.lua +++ b/plugins/mod_disco.lua @@ -71,6 +71,7 @@ local function build_server_disco_info() ver = _cached_server_caps_hash; }); end + local function clear_disco_cache() _cached_server_disco_info, _cached_server_caps_feature, _cached_server_caps_hash = nil, nil, nil; end @@ -116,6 +117,7 @@ module:hook("iq-get/host/http://jabber.org/protocol/disco#info:query", function( origin.send(reply); return true; end); + module:hook("iq-get/host/http://jabber.org/protocol/disco#items:query", function(event) local origin, stanza = event.origin, event.stanza; local node = stanza.tags[1].attr.node; @@ -179,6 +181,7 @@ module:hook("iq-get/bare/http://jabber.org/protocol/disco#info:query", function( return true; end end); + module:hook("iq-get/bare/http://jabber.org/protocol/disco#items:query", function(event) local origin, stanza = event.origin, event.stanza; local node = stanza.tags[1].attr.node; @@ -204,3 +207,4 @@ module:hook("iq-get/bare/http://jabber.org/protocol/disco#items:query", function return true; end end); + |