Software /
code /
prosody
Changeset
3792:1f9ab0fa77cc
mod_disco: Fixed: Service discovery features were not being removed on module unload (issue #205).
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Sun, 28 Nov 2010 07:56:08 +0500 |
parents | 3791:04c7b71ce078 |
children | 3793:b7b3e575a12b |
files | plugins/mod_disco.lua |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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)