From 84aa84591183db08489cad4e5a26472dbd7050b2 Mon Sep 17 00:00:00 2001 From: Loic Blot Date: Sat, 15 Jul 2017 09:28:10 +0200 Subject: Revert "CSM: Revert "[CSM] Add send_chat_message and run_server_chatcommand"" This reverts commit bdac12761cd92960c3df83c932aa610f2322215f. --- builtin/client/chatcommands.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'builtin/client') diff --git a/builtin/client/chatcommands.lua b/builtin/client/chatcommands.lua index 20f98a293..ed43a6140 100644 --- a/builtin/client/chatcommands.lua +++ b/builtin/client/chatcommands.lua @@ -51,3 +51,15 @@ core.register_chatcommand("disconnect", { core.disconnect() end, }) + +core.register_chatcommand("clear_chat_queue", { + description = core.gettext("Clear the out chat queue"), + func = function(param) + core.clear_out_chat_queue() + return true, core.gettext("The out chat queue is now empty") + end, +}) + +function core.run_server_chatcommand(cmd, param) + core.send_chat_message("/" .. cmd .. " " .. param) +end -- cgit v1.2.3