aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
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
commit4e4cb53a5b3ebe24ec7be7a07b62d08d7a3356d1 (patch)
tree564a446afe57d72f779c191a3b1f72bd66c09d7a /plugins
parentae5119a1916f4300ff969e578bad23fc2242cca0 (diff)
downloadprosody-4e4cb53a5b3ebe24ec7be7a07b62d08d7a3356d1.tar.gz
prosody-4e4cb53a5b3ebe24ec7be7a07b62d08d7a3356d1.zip
plugins/muc/muc.lib: Additional `route_to_occupant` usage
Diffstat (limited to 'plugins')
-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