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 | 4d7106bee63fe544a4bec49c201d56b93d3794d3 (patch) | |
tree | 55740bf18e9c25e1591489e5a4479650c7116ea9 /plugins/muc | |
parent | 347202819d3fd42945160856f0c409a245b4d1f1 (diff) | |
download | prosody-4d7106bee63fe544a4bec49c201d56b93d3794d3.tar.gz prosody-4d7106bee63fe544a4bec49c201d56b93d3794d3.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 |