# HG changeset patch # User daurnimator # Date 1395346753 14400 # Node ID 5d8949bb15b075bc96f7f52f6348247152e98682 # Parent 96a1aa23ae0d194f1d7e7b7026374ed551da7ed7 plugins/muc/muc.lib: Additional `route_to_occupant` usage diff -r 96a1aa23ae0d -r 5d8949bb15b0 plugins/muc/muc.lib.lua --- a/plugins/muc/muc.lib.lua Thu Mar 20 16:14:22 2014 -0400 +++ b/plugins/muc/muc.lib.lua Thu Mar 20 16:19:13 2014 -0400 @@ -141,10 +141,7 @@ 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