diff options
author | Waqas Hussain <waqas20@gmail.com> | 2010-11-28 07:56:08 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2010-11-28 07:56:08 +0500 |
commit | b553d5d28974256dbab52cd8e3d9b16f8252d4d1 (patch) | |
tree | 7fd7569310713e8c162da786d85977f389ffabfc /plugins/mod_disco.lua | |
parent | fa8b6da04802370cd96849781f5991e9e6f61ab5 (diff) | |
download | prosody-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.lua | 2 |
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) |