fix: modules ci build (#80)

This commit is contained in:
Axel Cocat
2022-12-29 14:46:41 +01:00
committed by GitHub
parent 310719e195
commit 266516305a

View File

@@ -1229,7 +1229,7 @@ namespace LuaGlobalFunctions
{
const char* command = Eluna::CHECKVAL<const char*>(L, 1);
#if defined TRINITY || AZEROTHCORE
eWorld->QueueCliCommand(new CliCommandHolder(nullptr, command, [](void* obj, std::string_view view)
eWorld->QueueCliCommand(new CliCommandHolder(nullptr, command, [](void*, std::string_view view)
{
std::string str = { view.begin(), view.end() };
str.erase(std::find_if(str.rbegin(), str.rend(), [](unsigned char ch) { return !std::isspace(ch); }).base(), str.end()); // Remove trailing spaces and line breaks