aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc
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
commit9e8f0a984c05647db2346160d1cf62139560fefc (patch)
tree55740bf18e9c25e1591489e5a4479650c7116ea9 /plugins/muc
parent975283ba9cb3fe63488a31e30a23f4d65bc0910b (diff)
downloadprosody-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.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