Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Protection banner: Difference between revisions

Content added Content deleted
(make Protection:needsExpiry even more complicated to allow for trinary logic in cfg.expiryCheckActions)
m (fix cfg field name)
Line 301: Line 301:
function Protection:needsExpiry()
function Protection:needsExpiry()
local cfg = self._cfg
local cfg = self._cfg
local actionNeedsCheck = cfg.expirycheckactions[self.action]
local actionNeedsCheck = cfg.expiryCheckActions[self.action]
return not self.expiry and (
return not self.expiry and (
actionNeedsCheck or (
actionNeedsCheck or (
Cookies help us deliver our services. By using our services, you agree to our use of cookies.