# HG changeset patch # User daurnimator # Date 1400692797 14400 # Node ID 2df9e7a67e569197238837432a7dcd3474bee7e8 # Parent 10b27981ea3f101396ff5db84043910c4fd79a7b plugins/muc/muc.lib: Even unavailable session need to be routed to sometimes (e.g. their own leave) diff -r 10b27981ea3f -r 2df9e7a67e56 plugins/muc/muc.lib.lua --- a/plugins/muc/muc.lib.lua Wed May 21 13:11:00 2014 -0400 +++ b/plugins/muc/muc.lib.lua Wed May 21 13:19:57 2014 -0400 @@ -123,10 +123,8 @@ function room_mt:route_to_occupant(occupant, stanza) local to = stanza.attr.to; for jid, pr in occupant:each_session() do - if pr.attr.type ~= "unavailable" then - stanza.attr.to = jid; - self:route_stanza(stanza); - end + stanza.attr.to = jid; + self:route_stanza(stanza); end stanza.attr.to = to; end