aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc/muc.lib.lua
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2014-03-19 12:03:15 -0400
committerdaurnimator <quae@daurnimator.com>2014-03-19 12:03:15 -0400
commit5b4518c010d70120cf5afef3ad4208454407a49b (patch)
tree326c9d85c38b8c3ee8682fab30a114b7f1f28b8f /plugins/muc/muc.lib.lua
parente3b729b9780b64e3efcd2a8163d3fcc8121daf14 (diff)
downloadprosody-5b4518c010d70120cf5afef3ad4208454407a49b.tar.gz
prosody-5b4518c010d70120cf5afef3ad4208454407a49b.zip
plugins/muc: Provide a reasonable default `route_stanza`
Diffstat (limited to 'plugins/muc/muc.lib.lua')
-rw-r--r--plugins/muc/muc.lib.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua
index 9f7b5c70..198e25a3 100644
--- a/plugins/muc/muc.lib.lua
+++ b/plugins/muc/muc.lib.lua
@@ -1145,7 +1145,9 @@ function room_mt:handle_stanza(origin, stanza)
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);