reduce bag event usage for lag and fix macro calling within macros

This commit is contained in:
Jrc13245
2025-12-12 15:43:21 -05:00
parent 35cce7e61a
commit 2fd4ac3298
4 changed files with 325 additions and 186 deletions
+1 -1
View File
@@ -105,7 +105,7 @@ do
if type(fn) == "function" then
local b2, e2 = string.find(text, "^%s*/" .. k .. "%s+[!%[%{%?~]")
if b2 then
local msg2 = string.gsub(string.sub(text, e2 + 1), "^%s+", "")
local msg2 = string.gsub(string.sub(text, e2), "^%s+", "")
pcall(fn, msg2)
return true -- IMPORTANT
end