aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-02-11 18:07:20 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-02-11 18:07:20 +0500
commitc11c83d1b4762c251fdf69d3cbd9ed025f0073fd (patch)
treecb715ef8ba5e0aa41bd6700a368c5075a2b41a21 /plugins
parent0310a8be6e2a62ceaa30ff693a4e2947ae57d493 (diff)
downloadprosody-c11c83d1b4762c251fdf69d3cbd9ed025f0073fd.tar.gz
prosody-c11c83d1b4762c251fdf69d3cbd9ed025f0073fd.zip
Changed mod_muc to work with changed component manager
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_muc.lua8
1 files changed, 2 insertions, 6 deletions
diff --git a/plugins/mod_muc.lua b/plugins/mod_muc.lua
index 602fb5bc..79fcbdb6 100644
--- a/plugins/mod_muc.lua
+++ b/plugins/mod_muc.lua
@@ -266,7 +266,7 @@ function handle_to_domain(origin, stanza)
end
end
-function handle_stanza(origin, stanza)
+register_component(muc_domain, function(origin, stanza)
local to_node, to_host, to_resource = jid_split(stanza.attr.to);
if stanza.name == "presence" and stanza.attr.type ~= nil and stanza.attr.type ~= "unavailable" then
if type == "error" or type == "result" then return; end
@@ -282,11 +282,7 @@ function handle_stanza(origin, stanza)
if type == "error" or type == "result" then return; end
handle_to_domain(origin, stanza);
end
-end
-
-module.load_component = function()
- return handle_stanza; -- Return the function that we want to handle incoming stanzas
-end
+end);
module.unload = function()
deregister_component(muc_domain);