mod_muc: Use module:send() instead of core_*_stanza()
authorKim Alvefur <zash@zash.se>
Thu, 26 Jul 2012 04:41:56 +0200
changeset 5015 f19b38bfa015
parent 5014 b2006c1cfa85
child 5016 56a0b13a3d42
mod_muc: Use module:send() instead of core_*_stanza()
plugins/muc/mod_muc.lua
--- a/plugins/muc/mod_muc.lua	Thu Jul 26 04:35:13 2012 +0200
+++ b/plugins/muc/mod_muc.lua	Thu Jul 26 04:41:56 2012 +0200
@@ -42,7 +42,7 @@
 	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 @@
 
 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