1
0
mirror of https://github.com/Earu/EasyChat.git synced 2025-03-04 03:13:20 -05:00

Add a hook for macros being ran [ci skip]

This commit is contained in:
Earu 2022-06-13 23:53:28 +02:00
parent 3d910e118f
commit 4f0b096d04

View File

@ -74,6 +74,9 @@ function macro_processor:ProcessMacro(macro, str)
local str_chunk = str:sub(previous_end_pos)
new_str = new_str .. self:ProcessPerCharacter(macro.Value, str_chunk)
local ret = EasyChat.SafeHookRun("ECOnProcessMacro", macro, str, new_str)
if isstring(ret) then return ret end
return new_str
end