summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2018-04-05 13:06:09 +0100
committerrubenwardy <rw@rubenwardy.com>2018-04-05 13:06:09 +0100
commitee4931ae6efbc063431069768bbb37f44478f6db (patch)
treeae36f877dfd49aaa4aaa0b533650cd8bc5325109
parent51ccb8c1b6d45f44627300f0758aa3141405cf69 (diff)
Add assert to awards.player()
-rw-r--r--api.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/api.lua b/api.lua
index a35d3e1..76ab33d 100644
--- a/api.lua
+++ b/api.lua
@@ -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