aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2014-03-20 16:19:13 -0400
committerdaurnimator <quae@daurnimator.com>2014-03-20 16:19:13 -0400
commit7951abf6fcb884bf455ffd24abbf80e0b40e7bab (patch)
tree564a446afe57d72f779c191a3b1f72bd66c09d7a /plugins/muc
parentded172dcc5fed433bc4c7ce184ee1185b72d3f41 (diff)
downloadprosody-7951abf6fcb884bf455ffd24abbf80e0b40e7bab.tar.gz
prosody-7951abf6fcb884bf455ffd24abbf80e0b40e7bab.zip
plugins/muc/muc.lib: Additional `route_to_occupant` usage
Diffstat (limited to 'plugins/muc')
-rw-r--r--plugins/muc/muc.lib.lua5
1 files changed, 1 insertions, 4 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua
index ac841248..6dce1a80 100644
--- a/plugins/muc/muc.lib.lua
+++ b/plugins/muc/muc.lib.lua
@@ -141,10 +141,7 @@ end
function room_mt:broadcast_except_nick(stanza, nick)
for rnick, occupant in pairs(self._occupants) do
if rnick ~= nick then
- for jid in pairs(occupant.sessions) do
- stanza.attr.to = jid;
- self:_route_stanza(stanza);
- end
+ self:route_to_occupant(occupant, stanza)
end
end
end