Account caching fix

This commit is contained in:
Colon 2021-02-18 10:25:33 -05:00
parent 6d1bbfa4e0
commit 0d2046e745

View file

@ -122,7 +122,7 @@ app.timeSince = function(id, time) {
}
app.userCache = function(id, accountID, playerID, name) {
if (!accountID || !app.config.cacheAccountIDs) return
if (!accountID || accountID == "0" || !app.config.cacheAccountIDs) return
if (!playerID) return app.accountCache[id][accountID.toLowerCase()]
let cacheStuff = [accountID, playerID, name]
app.accountCache[id][name.toLowerCase()] = cacheStuff