Account caching fix
This commit is contained in:
parent
6d1bbfa4e0
commit
0d2046e745
1 changed files with 1 additions and 1 deletions
2
index.js
2
index.js
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue