command predicates: added support for strict matching by appending '!' on string predicates

This commit is contained in:
jgmdev
2022-05-15 16:10:57 -04:00
parent 0a66163c10
commit 4d3e8d8bd0
2 changed files with 17 additions and 9 deletions
+1 -4
View File
@@ -21,10 +21,7 @@ end
function Object:is(T)
if getmetatable(self) == T then
return true
end
return false
return getmetatable(self) == T
end