Module:Protection banner: Difference between revisions

more efficient p.matchNamespace logic
m (fix comment typo)
(more efficient p.matchNamespace logic)
Line 93:
end
local nskey = nskeys[ns]
if not nskey and ns % 2 == 1 then
nskeyif ns % 2 == 1 'talk'then
nskey = 'alltalk'
elseif not nskey then
else
nskey = 'all'
nskey = 'all'
end
end
return nskey