Closed ds1-e closed 2 years ago
It stops you entering an invalid length serial how is this redundant?
@ArranTuna how it can stop it if the function doesn't exist there?
Anyways it's my overlook, because this check was present in admin during player join, see mentioned PR.
Ok so yeah it's not in admin2 but it's in admin so really shouldn't you have made a PR to add
local serialExp = "^" .. string.rep ( "[A-F0-9]", 32 ) .. "$"
function isValidSerial ( serial )
return serial:match ( serialExp )
end
to admin2 instead of removing it from admin and admin2?
The whole discussion was about removing it from admin, because it was confirmed that serial check (during player join) was redundant, because MTA AC will take care of it anyway (serial manipulating). I've mentioned before that it was my overlook in admin2, I guess it can be added for both admins in separate PRs (feel free to do so). So possibly i might close those two PRs and leave the function at least in (#377) (for serial ban check).
Same as in here.