diff options
author | Waqas Hussain <waqas20@gmail.com> | 2009-01-13 20:18:20 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2009-01-13 20:18:20 +0500 |
commit | e101b6d220b027be538025f634f6ac532fd93bed (patch) | |
tree | 63c07040467e91b72eedd6480bb9828ee65a93ae | |
parent | 6ace3ff79401783c617a9fbc0f87f002c66f15a5 (diff) | |
download | prosody-e101b6d220b027be538025f634f6ac532fd93bed.tar.gz prosody-e101b6d220b027be538025f634f6ac532fd93bed.zip |
mod_muc: deregister component on unload
-rw-r--r-- | plugins/mod_muc.lua | 6 |
1 files changed, 6 insertions, 0 deletions
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
+
|