From ee4931ae6efbc063431069768bbb37f44478f6db Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Thu, 5 Apr 2018 13:06:09 +0100 Subject: [PATCH] Add assert to awards.player() --- api.lua | 1 + 1 file changed, 1 insertion(+) 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