# HG changeset patch # User Kim Alvefur # Date 1343270516 -7200 # Node ID f19b38bfa01515798b140e0ae6a85e11aee75346 # Parent b2006c1cfa855c62c175cf8ad4c113dc76d4ec34 mod_muc: Use module:send() instead of core_*_stanza() diff -r b2006c1cfa85 -r f19b38bfa015 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