Changeset

707:bb9583314ec7

mod_muc: deregister component on unload
author Waqas Hussain <waqas20@gmail.com>
date Tue, 13 Jan 2009 20:18:20 +0500
parents 706:ce772e283992
children 708:b72d408f5f15
files plugins/mod_muc.lua
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
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
+