aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2014-05-21 13:19:57 -0400
committerdaurnimator <quae@daurnimator.com>2014-05-21 13:19:57 -0400
commit4d7106bee63fe544a4bec49c201d56b93d3794d3 (patch)
tree55740bf18e9c25e1591489e5a4479650c7116ea9 /plugins
parent347202819d3fd42945160856f0c409a245b4d1f1 (diff)
downloadprosody-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')
-rw-r--r--plugins/muc/muc.lib.lua6
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