View Issue Details

IDProjectCategoryView StatusLast Update
0008940Multi Theft Auto : San AndreasServerpublic2015-07-18 13:35
ReporterarranTunaAssigned Toccw 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version 
Target Version1.5.1Fixed in Version1.5.1 
Summary0008940: Debug spam: Already an account using a case variation of that name ('x')
Description

People keep trying to register accounts that already exist with a different case and there is no way scripters can stop them from causing this debug warning spam without a hack fix:

  1. Lower case the account name they want.
  2. Loop every single account and lower case it.
  3. Check if they match.

This debug warning should be removed.

TagsNo tags attached.

Activities

arranTuna

2015-07-18 12:11

manager   ~~0023657

local t1 = getTickCount()
local accLower = string.lower("afdgfdghtjh")
for i, acc in ipairs(getAccounts()) do
if (string.lower(getAccountName(acc)) == accLower) then
return false
end
end
local t2 = getTickCount()
outputDebugString("Time taken to check for matching account name: "..t2 - t1)

It took 737ms to do this check, just to block this debug warning.

arranTuna

2015-07-18 13:35

manager   ~~0023662

https://github.com/multitheftauto/mtasa-blue/commit/e81a6352d2a247bab2449cb3b9d7b52f2a761ccb

Issue History

Date Modified Username Field Change