Jump to content

Module:Protection banner: Difference between revisions

use ipairs to make the attempt loop a little more efficient
(wrong way round?)
(use ipairs to make the attempt loop a little more efficient)
Line 159: Line 159:
for i, t in ipairs(attemptOrder) do
for i, t in ipairs(attemptOrder) do
local key = {}
local key = {}
for j = 1, 5 do
for j, useKeyTable in ipairs(t) do
if t[j] then
if useKeyTable then
key[j] = keyTable[j]
key[j] = keyTable[j]
else
else
Cookies help us deliver our services. By using our services, you agree to our use of cookies.