mirror of
https://github.com/etlegacy/wolfadmin.git
synced 2025-04-16 13:51:59 +00:00
Fixed more uninitialized variables
This commit is contained in:
parent
01e60a5055
commit
c3cb849eb1
1 changed files with 2 additions and 2 deletions
|
@ -139,13 +139,13 @@ function players.onconnect(clientId, firstTime, isBot)
|
|||
if alias then
|
||||
db.updatealias(alias["id"], os.time())
|
||||
else
|
||||
db.addalias(playerid, name, os.time())
|
||||
db.addalias(player["id"], data[clientId]["name"], os.time())
|
||||
end
|
||||
else
|
||||
db.addplayer(data[clientId]["guid"], data[clientId]["ip"])
|
||||
|
||||
local player = db.getplayer(data[clientId]["guid"])
|
||||
db.addalias(player["id"], name, os.time())
|
||||
db.addalias(player["id"], data[clientId]["name"], os.time())
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue