comparison mod_http_muc_log/mod_http_muc_log.lua @ 2592:fb1987d4ac62

mod_http_muc_log: Rename loop variable to avoid name clash
author Kim Alvefur <zash@zash.se>
date Wed, 01 Mar 2017 20:33:58 +0100
parents 3e1a85c5194c
children b61b0ff1c0f9
comparison
equal deleted inserted replaced
2591:3e1a85c5194c 2592:fb1987d4ac62
213 if i == 1 then return end -- No items 213 if i == 1 then return end -- No items
214 214
215 local next_when, prev_when = "", ""; 215 local next_when, prev_when = "", "";
216 local date_list = archive.dates and archive:dates(room); 216 local date_list = archive.dates and archive:dates(room);
217 if date_list then 217 if date_list then
218 for i = 1, #date_list do 218 for j = 1, #date_list do
219 if date_list[i] == date then 219 if date_list[j] == date then
220 next_when = date_list[i+1] or ""; 220 next_when = date_list[j+1] or "";
221 prev_when = date_list[i-1] or ""; 221 prev_when = date_list[j-1] or "";
222 break; 222 break;
223 end 223 end
224 end 224 end
225 else 225 else
226 226