diff options
author | daurnimator <quae@daurnimator.com> | 2014-05-21 13:19:57 -0400 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2014-05-21 13:19:57 -0400 |
commit | 9e8f0a984c05647db2346160d1cf62139560fefc (patch) | |
tree | 55740bf18e9c25e1591489e5a4479650c7116ea9 /plugins/muc | |
parent | 975283ba9cb3fe63488a31e30a23f4d65bc0910b (diff) | |
download | prosody-9e8f0a984c05647db2346160d1cf62139560fefc.tar.gz prosody-9e8f0a984c05647db2346160d1cf62139560fefc.zip |
plugins/muc/muc.lib: Even unavailable session need to be routed to sometimes (e.g. their own leave)
Diffstat (limited to 'plugins/muc')
-rw-r--r-- | plugins/muc/muc.lib.lua | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua index 34934213..0b361763 100644 --- a/plugins/muc/muc.lib.lua +++ b/plugins/muc/muc.lib.lua @@ -123,10 +123,8 @@ end 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 |