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:
parent
3d910e118f
commit
4f0b096d04
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user