Software /
code /
prosody
Diff
plugins/muc/muc.lib.lua @ 6111:f8b94903be52
plugins/muc: Provide a reasonable default `route_stanza`
author | daurnimator <quae@daurnimator.com> |
---|---|
date | Wed, 19 Mar 2014 12:03:15 -0400 |
parent | 6108:aae7bc9d6e93 |
child | 6112:819e00a86239 |
line wrap: on
line diff
--- a/plugins/muc/muc.lib.lua Tue Mar 18 18:56:26 2014 -0400 +++ b/plugins/muc/muc.lib.lua Wed Mar 19 12:03:15 2014 -0400 @@ -1145,7 +1145,9 @@ end end -function room_mt:route_stanza(stanza) end -- Replace with a routing function, e.g., function(room, stanza) core_route_stanza(origin, stanza); end +function room_mt:route_stanza(stanza) + module:send(stanza) +end function room_mt:get_affiliation(jid) local node, host, resource = jid_split(jid);