fix tpt.log so that when called multiple times, it doesn't overwrite the text

This commit is contained in:
mniip
2013-05-02 23:49:53 +04:00
parent 2eaed9c9d4
commit 29496cb6d3

View File

@@ -958,7 +958,11 @@ int luatpt_log(lua_State* l)
lua_pop(l, 2);
}
if((*luacon_currentCommand))
(*luacon_lastError) = text;
{
if(luacon_lastError->length())
*luacon_lastError += "; ";
*luacon_lastError += text;
}
else
luacon_ci->Log(CommandInterface::LogNotice, text.c_str());
return 0;