From ef77262da0388d12e30dc759a3a5fc22743a711a Mon Sep 17 00:00:00 2001 From: sl5net Date: Thu, 29 Jun 2023 07:31:17 +0200 Subject: [PATCH] add command from shared commands when gamesetup or in game to command history --- gui/common/~autocivSharedCommands.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gui/common/~autocivSharedCommands.js b/gui/common/~autocivSharedCommands.js index 35f083d..5038264 100644 --- a/gui/common/~autocivSharedCommands.js +++ b/gui/common/~autocivSharedCommands.js @@ -321,7 +321,9 @@ autociv_InitSharedCommands.pipe = { "description": g_autociv_SharedCommands[key].description, "handler": text => { + // selfMessage(`334: SharedCommands= ${key} ${text}`) g_autociv_SharedCommands[key].handler(text) + selfMessage(`325: SharedCommands= ${text}`) return true } } @@ -330,6 +332,8 @@ autociv_InitSharedCommands.pipe = { { g_NetworkCommands["/" + key] = text => { + // selfMessage(`334: SharedCommands= ${key} ${text}`) + saveLastCommand2History(`/${key} ${text}`) g_autociv_SharedCommands[key].handler(text) return true } @@ -338,6 +342,8 @@ autociv_InitSharedCommands.pipe = { { g_NetworkCommands["/" + key] = text => { + // selfMessage(`334: SharedCommands= ${key} ${text}`) + saveLastCommand2History(`/${key} ${text}`) g_autociv_SharedCommands[key].handler(text) return true }