Software /
code /
prosody
Diff
plugins/muc/mod_muc.lua @ 5015:f19b38bfa015
mod_muc: Use module:send() instead of core_*_stanza()
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 26 Jul 2012 04:41:56 +0200 |
parent | 4924:d8b9fe5900a2 |
child | 5016:56a0b13a3d42 |
line wrap: on
line diff
--- 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