79 return _cached_server_caps_hash; |
79 return _cached_server_caps_hash; |
80 end |
80 end |
81 |
81 |
82 module:hook("item-added/identity", clear_disco_cache); |
82 module:hook("item-added/identity", clear_disco_cache); |
83 module:hook("item-added/feature", clear_disco_cache); |
83 module:hook("item-added/feature", clear_disco_cache); |
|
84 module:hook("item-removed/identity", clear_disco_cache); |
|
85 module:hook("item-removed/feature", clear_disco_cache); |
84 |
86 |
85 -- Handle disco requests to the server |
87 -- Handle disco requests to the server |
86 module:hook("iq/host/http://jabber.org/protocol/disco#info:query", function(event) |
88 module:hook("iq/host/http://jabber.org/protocol/disco#info:query", function(event) |
87 local origin, stanza = event.origin, event.stanza; |
89 local origin, stanza = event.origin, event.stanza; |
88 if stanza.attr.type ~= "get" then return; end |
90 if stanza.attr.type ~= "get" then return; end |