Skip to content

Commit

Permalink
Make sure the server never writes discord_user_id
Browse files Browse the repository at this point in the history
  • Loading branch information
Doridian committed Mar 30, 2024
1 parent cfb613e commit 956bba7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/sa/core/server/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ function SA.SaveUser(ply, dontsaverd)
return false
end

ply.sa_data.discord_user_id = nil
ply.sa_data.name = ply:Nick()
ply.sa_data.station_storage.contents = SA.Terminal.GetPermStorage(ply)
SA.API.UpsertPlayer(ply)
Expand Down

0 comments on commit 956bba7

Please sign in to comment.