equal
deleted
inserted
replaced
179 return maxchars, maxstanzas, since |
179 return maxchars, maxstanzas, since |
180 end |
180 end |
181 -- Get history for 'to' |
181 -- Get history for 'to' |
182 function room_mt:get_history(to, maxchars, maxstanzas, since) |
182 function room_mt:get_history(to, maxchars, maxstanzas, since) |
183 local history = self._data['history']; -- send discussion history |
183 local history = self._data['history']; -- send discussion history |
184 if not history then return end |
184 if not history then return function() end end |
185 local history_len = #history |
185 local history_len = #history |
186 |
186 |
187 maxstanzas = maxstanzas or history_len |
187 maxstanzas = maxstanzas or history_len |
188 local n = 0; |
188 local n = 0; |
189 local charcount = 0; |
189 local charcount = 0; |