From 82cb5d66684852c1ff852b2190bc83fdbb316795 Mon Sep 17 00:00:00 2001 From: SecretX33 <4389757+SecretX33@users.noreply.github.com> Date: Sat, 2 Jan 2021 12:43:32 -0300 Subject: [PATCH] Fixed typo --- AutomaticWeaponRemoval.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AutomaticWeaponRemoval.lua b/AutomaticWeaponRemoval.lua index 993e65a..932e436 100644 --- a/AutomaticWeaponRemoval.lua +++ b/AutomaticWeaponRemoval.lua @@ -460,7 +460,7 @@ end -- Remove spaces on start and end of string local function trim(s) - if str==nil then return "" end + if s==nil then return "" end assert(type(s) == "string", "bad argument #1: 's' needs to be a string; instead what came was " .. tostring(type(s))) return string.match(s,'^()%s*$') and '' or string.match(s,'^%s*(.*%S)') end