aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc/mod_muc.lua
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
commitfa9a3dcf33361afeb0a9e2c981a5f5116ce47dc9 (patch)
tree66687cc771276b9db091b0d94781854e8c59de62 /plugins/muc/mod_muc.lua
parent4330e1308d1858206a3da4fcfea39e04d1d5a141 (diff)
downloadprosody-fa9a3dcf33361afeb0a9e2c981a5f5116ce47dc9.tar.gz
prosody-fa9a3dcf33361afeb0a9e2c981a5f5116ce47dc9.zip
mod_muc: Use module:send() instead of core_*_stanza()
Diffstat (limited to 'plugins/muc/mod_muc.lua')
-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