Software /
code /
prosody
Comparison
plugins/muc/muc.lib.lua @ 1751:55ee6e792e3e
MUC: Fixed a variable scoping bug causing problems with presence routing on affiliation/role change.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Mon, 07 Sep 2009 20:43:25 +0500 |
parent | 1750:a1c18470eeee |
child | 1752:4db786919805 |
comparison
equal
deleted
inserted
replaced
1750:a1c18470eeee | 1751:55ee6e792e3e |
---|---|
146 t_insert(history, st.clone(st.preserialize(stanza))); | 146 t_insert(history, st.clone(st.preserialize(stanza))); |
147 while #history > history_length do t_remove(history, 1) end | 147 while #history > history_length do t_remove(history, 1) end |
148 end | 148 end |
149 end | 149 end |
150 function room_mt:broadcast_except_nick(stanza, nick) | 150 function room_mt:broadcast_except_nick(stanza, nick) |
151 for nick, occupant in pairs(self._occupants) do | 151 for rnick, occupant in pairs(self._occupants) do |
152 if nick ~= nick then | 152 if rnick ~= nick then |
153 for jid in pairs(occupant.sessions) do | 153 for jid in pairs(occupant.sessions) do |
154 stanza.attr.to = jid; | 154 stanza.attr.to = jid; |
155 self:route_stanza(stanza); | 155 self:route_stanza(stanza); |
156 end | 156 end |
157 end | 157 end |