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 end
function awards.player(name) function awards.player(name)
assert(type(name) == "string")
local data = awards.players[name] or {} local data = awards.players[name] or {}
awards.players[name] = data awards.players[name] = data
data.name = data.name or name data.name = data.name or name