aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
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
commit69270394efd9fdc2a3e1ba36f72517c1134d58b9 (patch)
tree173d7866a041b0e9bd1cf79e4a973e08719d6418 /plugins
parent7e7ab2845938cea123d206f85e24a50e24deeea4 (diff)
downloadprosody-69270394efd9fdc2a3e1ba36f72517c1134d58b9.tar.gz
prosody-69270394efd9fdc2a3e1ba36f72517c1134d58b9.zip
mod_disco: Fixed: Service discovery features were not being removed on module unload (issue #205).
Diffstat (limited to 'plugins')
-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)