Add exception for "mariko" units in .ssnc
@@ -33,8 +33,17 @@ class SwitchSerialNumberCheck(Cog):
removed."""
serial = serial.split()[0].upper()
if not re.match("XA[JWK][1479][0-9]{6}", serial):
+
+ # This should catch serials from the new "mariko" units
+ # XKW10000000000, XKJ10000000000 = HAC-001-01, the "New Switch"
+ # XJW01000000000, XWW01000000000 = HOH-001, the Switch Lite
+ # As not much about the assembly line is known yet every digit will count for the filter
+ if re.match("X[KW][WJ][0-9]{7}", serial):
+ return await ctx.send("This seems to be a \"mariko\" Switch or Switch Lite.\n"
+ "These are currently not hackable or vulnerable to any known exploits")
+ else:
return await ctx.send("This is not a valid serial number!\n"
- "If you believe this to be in error, contact staff.")
+ "If you believe this to be an error, contact staff.")
patched = False
maybe = False
