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 | c70f820f600fd04ff74f5c1af910b7b8321ab5d5 (patch) | |
tree | d35d21f16bffa4e369667401e4029a51dd1b08ed | |
parent | 347d99192bf7f0c457a6717f8416084092ec91ff (diff) | |
download | prosody-c70f820f600fd04ff74f5c1af910b7b8321ab5d5.tar.gz prosody-c70f820f600fd04ff74f5c1af910b7b8321ab5d5.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); + |