Software /
code /
prosody
Diff
plugins/mod_muc.lua @ 707:bb9583314ec7
mod_muc: deregister component on unload
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Tue, 13 Jan 2009 20:18:20 +0500 |
parent | 671:c7519f0c9a2c |
child | 711:7653519ec4f2 |
line wrap: on
line diff
--- a/plugins/mod_muc.lua Tue Jan 13 19:41:52 2009 +0500 +++ b/plugins/mod_muc.lua Tue Jan 13 20:18:20 2009 +0500 @@ -1,6 +1,7 @@ local register_component = require "core.componentmanager".register_component; +local deregister_component = require "core.componentmanager".deregister_component; local jid_split = require "util.jid".split; local jid_bare = require "util.jid".bare; local st = require "util.stanza"; @@ -272,3 +273,8 @@ handle_to_domain(origin, stanza); end end); + +function unload() + deregister_component(muc_domain); +end +