Comparison

plugins/muc/history.lib.lua @ 7086:6cc7c9da29ed

MUC: Rename variables to please luacheck
author Kim Alvefur <zash@zash.se>
date Wed, 20 Jan 2016 14:46:06 +0100
parent 6991:84e01dbb739e
child 7350:24e2369b67f9
comparison
equal deleted inserted replaced
7085:343be83ddfa6 7086:6cc7c9da29ed
103 if n + 1 > maxstanzas then break; end 103 if n + 1 > maxstanzas then break; end
104 n = n + 1; 104 n = n + 1;
105 end 105 end
106 106
107 local i = history_len-n+1 107 local i = history_len-n+1
108 function event:next_stanza() 108 function event.next_stanza()
109 if i > history_len then return nil end 109 if i > history_len then return nil end
110 local entry = history[i]; 110 local entry = history[i];
111 local msg = entry.stanza; 111 local msg = entry.stanza;
112 msg.attr.to = to; 112 msg.attr.to = to;
113 i = i + 1; 113 i = i + 1;