Changes
try different format for behaviors table
--------------------------------------------------------------------------------
local cfg = {} cfg.reasons = { blp = { behavior = 'reasonFirst' }, dispute = { behavior = 'reasonFirst' }, office = { behavior = 'reasonFirst' }, sock = { behavior = 'reasonFirst' }, vandalism = { behavior = 'namespaceFirst' },} cfg.protectionLevels = { foo} cfg.categories = {
-- The key strings follow this format:
-- type, level, ns, reason, expiry
}
[2] = 'user',
[3] = 'user',
}
[0] = 'article',
[6] = 'file',
return nil
end
local nskey = cfg.categoryNamespaces[ns]
if not nskey and ns % 2 == 1 then
nskey = 'talk'
-- reason for protection, and the expiry date.
--]]
cats = cats or cfg.categories
--[[
behavior = 'reasonFirst'
else
behavior = behaviorscfg.reasons[reason].behavior
end
if behavior == 'namespaceFirst' then