Skip to content

Commit

Permalink
Fix CSM help form using "/" instead of "." (luanti-org#15034)
Browse files Browse the repository at this point in the history
when copying commands to chat
  • Loading branch information
zmv7 authored and SmallJoker committed Sep 8, 2024
1 parent 805f401 commit 7707652
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin/common/information_formspecs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ local function build_chatcommands_formspec(name, sel, copy)
description = cmds[2].description
if copy then
local msg = S("Command: @1 @2",
core.colorize("#0FF", "/" .. cmds[1]), cmds[2].params)
core.colorize("#0FF", (INIT == "client" and "." or "/") .. cmds[1]), cmds[2].params)
if INIT == "client" then
core.display_chat_message(msg)
else
Expand Down

0 comments on commit 7707652

Please sign in to comment.