X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=builtin%2Fclient%2Fchatcommands.lua;fp=builtin%2Fclient%2Fchatcommands.lua;h=0e8d4dd030cbbc3e4df9269162f0f74c6ceb5eae;hb=7d3641021b755be133dea58404fcb039211fbe52;hp=5cb1b40bb34858a10dbaae94d9e1c70dfb7bc65f;hpb=07500479191ed927ab661b3758ffcd2fd43158c5;p=dragonfireclient.git diff --git a/builtin/client/chatcommands.lua b/builtin/client/chatcommands.lua index 5cb1b40bb..0e8d4dd03 100644 --- a/builtin/client/chatcommands.lua +++ b/builtin/client/chatcommands.lua @@ -23,6 +23,11 @@ core.register_on_sending_chat_message(function(message) return true end + -- Run core.registered_on_chatcommand callbacks. + if core.run_callbacks(core.registered_on_chatcommand, 5, cmd, param) then + return true + end + local cmd_def = core.registered_chatcommands[cmd] if cmd_def then core.set_last_run_mod(cmd_def.mod_origin)