aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_disco.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-11-28 07:56:08 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-11-28 07:56:08 +0500
commitb553d5d28974256dbab52cd8e3d9b16f8252d4d1 (patch)
tree7fd7569310713e8c162da786d85977f389ffabfc /plugins/mod_disco.lua
parentfa8b6da04802370cd96849781f5991e9e6f61ab5 (diff)
downloadprosody-b553d5d28974256dbab52cd8e3d9b16f8252d4d1.tar.gz
prosody-b553d5d28974256dbab52cd8e3d9b16f8252d4d1.zip
mod_disco: Fixed: Service discovery features were not being removed on module unload (issue #205).
Diffstat (limited to 'plugins/mod_disco.lua')
-rw-r--r--plugins/mod_disco.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/mod_disco.lua b/plugins/mod_disco.lua
index e2885509..9bef6295 100644
--- a/plugins/mod_disco.lua
+++ b/plugins/mod_disco.lua
@@ -81,6 +81,8 @@ end
module:hook("item-added/identity", clear_disco_cache);
module:hook("item-added/feature", clear_disco_cache);
+module:hook("item-removed/identity", clear_disco_cache);
+module:hook("item-removed/feature", clear_disco_cache);
-- Handle disco requests to the server
module:hook("iq/host/http://jabber.org/protocol/disco#info:query", function(event)