summaryrefslogtreecommitdiff
path: root/api.lua
diff options
context:
space:
mode:
Diffstat (limited to 'api.lua')
-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