Mercurial > prosody-hg
comparison plugins/muc/muc.lib.lua @ 6133:5d8949bb15b0
plugins/muc/muc.lib: Additional `route_to_occupant` usage
| author | daurnimator <quae@daurnimator.com> |
|---|---|
| date | Thu, 20 Mar 2014 16:19:13 -0400 |
| parents | 96a1aa23ae0d |
| children | 48b6ef993888 |
comparison
equal
deleted
inserted
replaced
| 6132:96a1aa23ae0d | 6133:5d8949bb15b0 |
|---|---|
| 139 while #history > (self._data.history_length or default_history_length) do t_remove(history, 1) end | 139 while #history > (self._data.history_length or default_history_length) do t_remove(history, 1) end |
| 140 end | 140 end |
| 141 function room_mt:broadcast_except_nick(stanza, nick) | 141 function room_mt:broadcast_except_nick(stanza, nick) |
| 142 for rnick, occupant in pairs(self._occupants) do | 142 for rnick, occupant in pairs(self._occupants) do |
| 143 if rnick ~= nick then | 143 if rnick ~= nick then |
| 144 for jid in pairs(occupant.sessions) do | 144 self:route_to_occupant(occupant, stanza) |
| 145 stanza.attr.to = jid; | |
| 146 self:_route_stanza(stanza); | |
| 147 end | |
| 148 end | 145 end |
| 149 end | 146 end |
| 150 end | 147 end |
| 151 | 148 |
| 152 function room_mt:send_occupant_list(to) | 149 function room_mt:send_occupant_list(to) |
