aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-11-10 20:59:16 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-11-10 20:59:16 +0500
commitd38fc9dce0db97545b1f8b5dd79be2868bd66c93 (patch)
tree0b9bc6f85b8cc29c750efef83e018f504b3d1e95 /plugins/muc
parent072e5be5d27b809185daacc5e9b137f884b19fd1 (diff)
downloadprosody-d38fc9dce0db97545b1f8b5dd79be2868bd66c93.tar.gz
prosody-d38fc9dce0db97545b1f8b5dd79be2868bd66c93.zip
prosody: Removed all references to componentmanager from Prosody, except the main componentmanager file.
Diffstat (limited to 'plugins/muc')
-rw-r--r--plugins/muc/mod_muc.lua8
1 files changed, 1 insertions, 7 deletions
diff --git a/plugins/muc/mod_muc.lua b/plugins/muc/mod_muc.lua
index 60602050..22d2664d 100644
--- a/plugins/muc/mod_muc.lua
+++ b/plugins/muc/mod_muc.lua
@@ -23,8 +23,6 @@ if restrict_room_creation then
end
end
local muc_new_room = module:require "muc".new_room;
-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";
@@ -163,8 +161,7 @@ module:hook("iq/host", stanza_handler);
module:hook("message/host", stanza_handler);
module:hook("presence/host", stanza_handler);
-component = register_component(muc_host, function() end);
-function component.send(stanza) -- FIXME do a generic fix
+hosts[module.host].send = function(stanza) -- FIXME do a generic fix
if stanza.attr.type == "result" or stanza.attr.type == "error" then
core_post_stanza(component, stanza);
else error("component.send only supports result and error stanzas at the moment"); end
@@ -172,9 +169,6 @@ end
prosody.hosts[module:get_host()].muc = { rooms = rooms };
-module.unload = function()
- deregister_component(muc_host);
-end
module.save = function()
return {rooms = rooms};
end