From b553d5d28974256dbab52cd8e3d9b16f8252d4d1 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Sun, 28 Nov 2010 07:56:08 +0500 Subject: mod_disco: Fixed: Service discovery features were not being removed on module unload (issue #205). --- plugins/mod_disco.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'plugins') 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) -- cgit v1.2.3