aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2012-07-26 04:41:56 +0200
committerKim Alvefur <zash@zash.se>2012-07-26 04:41:56 +0200
commita3f9da1b44df0cfb56699d30497a85c3d4a8aa8f (patch)
tree66687cc771276b9db091b0d94781854e8c59de62 /plugins/muc
parentdf70fc25088c763d2878f796f9628415db79e8c6 (diff)
downloadprosody-a3f9da1b44df0cfb56699d30497a85c3d4a8aa8f.tar.gz
prosody-a3f9da1b44df0cfb56699d30497a85c3d4a8aa8f.zip
mod_muc: Use module:send() instead of core_*_stanza()
Diffstat (limited to 'plugins/muc')
-rw-r--r--plugins/muc/mod_muc.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/muc/mod_muc.lua b/plugins/muc/mod_muc.lua
index 77ad2647..eb4129d3 100644
--- a/plugins/muc/mod_muc.lua
+++ b/plugins/muc/mod_muc.lua
@@ -42,7 +42,7 @@ local function is_admin(jid)
return um_is_admin(jid, module.host);
end
-local function room_route_stanza(room, stanza) core_post_stanza(component, stanza); end
+local function room_route_stanza(room, stanza) module:send(stanza); end
local function room_save(room, forced)
local node = jid_split(room.jid);
persistent_rooms[room.jid] = room._data.persistent;
@@ -168,7 +168,7 @@ module:hook("presence/host", handle_to_domain, -1);
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);
+ module:send(stanza);
else error("component.send only supports result and error stanzas at the moment"); end
end