Modul:Protection banner: Unterschied zwischen den Versionen
more efficient p.matchNamespace logic
K (fix comment typo) |
(more efficient p.matchNamespace logic) |
||
Zeile 93: | Zeile 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 |