From e101b6d220b027be538025f634f6ac532fd93bed Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Tue, 13 Jan 2009 20:18:20 +0500 Subject: mod_muc: deregister component on unload --- plugins/mod_muc.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/mod_muc.lua b/plugins/mod_muc.lua index 8df96749..c19af879 100644 --- a/plugins/mod_muc.lua +++ b/plugins/mod_muc.lua @@ -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 @@ component = register_component(muc_domain, function(origin, stanza) handle_to_domain(origin, stanza); end end); + +function unload() + deregister_component(muc_domain); +end + -- cgit v1.2.3