1
0
mirror of https://gitlab.com/rubenwardy/awards.git synced 2024-12-27 11:10:41 +01:00

Add assert to awards.player()

This commit is contained in:
rubenwardy 2018-04-05 13:06:09 +01:00
parent 51ccb8c1b6
commit ee4931ae6e

View File

@ -91,6 +91,7 @@ function awards.load()
end
function awards.player(name)
assert(type(name) == "string")
local data = awards.players[name] or {}
awards.players[name] = data
data.name = data.name or name