MCPcopy Create free account
hub / github.com/The-Powder-Toy/The-Powder-Toy / FormatCommand

Method FormatCommand

src/lua/LuaScriptInterface.cpp:797–805  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

795}
796
797String CommandInterface::FormatCommand(String command)
798{
799 if(command.size() && command[0] == '!')
800 {
801 return "!" + PlainFormatCommand(command.Substr(1));
802 }
803 else
804 return highlight(command);
805}
806
807LuaScriptInterface::~LuaScriptInterface() = default;
808

Callers

nothing calls this directly

Calls 3

highlightFunction · 0.85
sizeMethod · 0.45
SubstrMethod · 0.45

Tested by

no test coverage detected