Software /
code /
prosody
Diff
plugins/muc/muc.lib.lua @ 6253:2df9e7a67e56
plugins/muc/muc.lib: Even unavailable session need to be routed to sometimes (e.g. their own leave)
author | daurnimator <quae@daurnimator.com> |
---|---|
date | Wed, 21 May 2014 13:19:57 -0400 |
parent | 6252:10b27981ea3f |
child | 6254:da4c04df90e3 |
child | 6266:cabeff5fc687 |
line wrap: on
line diff
--- 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