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 | 7951abf6fcb884bf455ffd24abbf80e0b40e7bab (patch) | |
tree | 564a446afe57d72f779c191a3b1f72bd66c09d7a | |
parent | ded172dcc5fed433bc4c7ce184ee1185b72d3f41 (diff) | |
download | prosody-7951abf6fcb884bf455ffd24abbf80e0b40e7bab.tar.gz prosody-7951abf6fcb884bf455ffd24abbf80e0b40e7bab.zip |
plugins/muc/muc.lib: Additional `route_to_occupant` usage
-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 |