From 29496cb6d3418eaed63f78a6624458ecf410bfc3 Mon Sep 17 00:00:00 2001 From: mniip Date: Thu, 2 May 2013 23:49:53 +0400 Subject: [PATCH] fix tpt.log so that when called multiple times, it doesn't overwrite the text --- src/cat/LegacyLuaAPI.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/cat/LegacyLuaAPI.cpp b/src/cat/LegacyLuaAPI.cpp index 75b67806b..4abd041a3 100644 --- a/src/cat/LegacyLuaAPI.cpp +++ b/src/cat/LegacyLuaAPI.cpp @@ -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;