diff options
author | daurnimator <quae@daurnimator.com> | 2014-03-20 16:19:13 -0400 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2014-03-20 16:19:13 -0400 |
commit | 4e4cb53a5b3ebe24ec7be7a07b62d08d7a3356d1 (patch) | |
tree | 564a446afe57d72f779c191a3b1f72bd66c09d7a /plugins/muc | |
parent | ae5119a1916f4300ff969e578bad23fc2242cca0 (diff) | |
download | prosody-4e4cb53a5b3ebe24ec7be7a07b62d08d7a3356d1.tar.gz prosody-4e4cb53a5b3ebe24ec7be7a07b62d08d7a3356d1.zip |
plugins/muc/muc.lib: Additional `route_to_occupant` usage
Diffstat (limited to 'plugins/muc')
-rw-r--r-- | plugins/muc/muc.lib.lua | 5 |
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 |