# HG changeset patch
# User Waqas Hussain <waqas20@gmail.com>
# Date 1290912968 -18000
# Node ID 1f9ab0fa77cce1dc77b968c41643fa26a24cc5b2
# Parent  04c7b71ce078ad23fb4f6a685f35ea1d099bdd01
mod_disco: Fixed: Service discovery features were not being removed on module unload (issue #205).

diff -r 04c7b71ce078 -r 1f9ab0fa77cc plugins/mod_disco.lua
--- a/plugins/mod_disco.lua	Sun Nov 28 07:43:19 2010 +0500
+++ b/plugins/mod_disco.lua	Sun Nov 28 07:56:08 2010 +0500
@@ -81,6 +81,8 @@
 
 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)