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 | if not nskey then | ||
if ns % 2 == 1 then | |||
nskey = 'talk' | |||
else | |||
nskey = 'all' | |||
end | |||
end | end | ||
return nskey | return nskey |