Jump to content

Module:Protection banner: Difference between revisions

more efficient p.matchNamespace logic
m (fix comment typo)
(more efficient p.matchNamespace logic)
Line 93: Line 93:
end
end
local nskey = nskeys[ns]
local nskey = nskeys[ns]
if not nskey and ns % 2 == 1 then
if not nskey then
nskey = 'talk'
if ns % 2 == 1 then
elseif not nskey then
nskey = 'talk'
nskey = 'all'
else
nskey = 'all'
end
end
end
return nskey
return nskey
Cookies help us deliver our services. By using our services, you agree to our use of cookies.