Changes

Jump to navigation Jump to search

Module:Protection banner

86 bytes added, 11:51, 22 July 2014
make Protection:needsExpiry even more complicated to allow for trinary logic in cfg.expiryCheckActions
function Protection:needsExpiry()
local cfg = self._cfg
return not self.expiry and local actionNeedsCheck = cfg.expiryCheckActionsexpirycheckactions[self.action] return not self.expiry and ( actionNeedsCheck or ( actionNeedsCheck == nil and self.reason -- the old {{pp-protected}} didn't check for expiry and not cfg.reasonsWithoutExpiryCheck[self.reason] ) )
end
Anonymous user

Navigation menu