Software /
code /
prosody
Diff
plugins/mod_disco.lua @ 11204:ae2a11066001
mod_disco: Add some spacing to improve readability and code navigation
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 10 Nov 2020 14:46:49 +0100 |
parent | 9223:80dbb60d81e4 |
child | 11737:59cf555b4698 |
line wrap: on
line diff
--- a/plugins/mod_disco.lua Mon Nov 09 12:38:32 2020 +0100 +++ b/plugins/mod_disco.lua Tue Nov 10 14:46:49 2020 +0100 @@ -71,6 +71,7 @@ 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 @@ 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 @@ 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 @@ return true; end end); +