Module:Protection banner: Difference between revisions

Content added Content deleted
Enwikipedia>Mr. Stradivarius
(try making the algorithm more general)
Enwikipedia>Mr. Stradivarius
m (fix typo)
Line 179: Line 179:
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]
elseif not reasonBeavior then
elseif not reasonBehavior then
error(reason .. ' is not a valid reason')
error(reason .. ' is not a valid reason')
end
end