Module:Protection banner: Difference between revisions

add a check for the 'all' keyword
Enwikipedia>Mr. Stradivarius
m (fix typo)
Enwikipedia>Mr. Stradivarius
(add a check for the 'all' keyword)
Line 179:
attemptOrder[3], attemptOrder[4] = attemptOrder[4], attemptOrder[3]
attemptOrder[5], attemptOrder[6] = attemptOrder[6], attemptOrder[5]
elseif not reasonBehavior or reasonBehavior ~= 'all' then
error(reason .. ' is not a valid reason')
end