Module:Protection banner: Difference between revisions
wrong way round?
(try adding an exception) |
(wrong way round?) |
||
Line 151: | Line 151: | ||
{false, false, false, false, false} -- 10 | {false, false, false, false, false} -- 10 | ||
} | } | ||
if reason | if reason ~= 'vandalism' then | ||
attemptOrder[3], attemptOrder[4] = attemptOrder[4], attemptOrder[3] | attemptOrder[3], attemptOrder[4] = attemptOrder[4], attemptOrder[3] | ||
attemptOrder[5], attemptOrder[6] = attemptOrder[6], attemptOrder[5] | attemptOrder[5], attemptOrder[6] = attemptOrder[6], attemptOrder[5] | ||
Line 167: | Line 167: | ||
end | end | ||
key = table.concat(key, '-') | key = table.concat(key, '-') | ||
mw.log(key) -- for debugging | |||
local attempt = cats[key] | local attempt = cats[key] | ||
if attempt then | if attempt then |