Modul:Protection banner: Unterschied zwischen den Versionen
try different orders for vandalism and other reasons
(try a different order) |
(try different orders for vandalism and other reasons) |
||
Zeile 136: | Zeile 136: | ||
-- Define the key table and the order to test it in | -- Define the key table and the order to test it in | ||
local keyTable = {protType, protLevel, namespace, reason, expiry} | local keyTable = {protType, protLevel, namespace, reason, expiry} | ||
local tryOrder = {5, 3, 4, 2, 1} | local tryOrder | ||
if reason == 'vandalism' then | |||
tryOrder = {5, 4, 3, 2, 1} | |||
else | |||
tryOrder = {5, 3, 4, 2, 1} | |||
end | |||
-- Try successively generic matches until we run out of key combinations | -- Try successively generic matches until we run out of key combinations |