diff options
| author | mniip <mniip@mniip.com> | 2013-05-02 19:49:53 (GMT) |
|---|---|---|
| committer | mniip <mniip@mniip.com> | 2013-05-02 19:49:53 (GMT) |
| commit | 29496cb6d3418eaed63f78a6624458ecf410bfc3 (patch) | |
| tree | 36ded5e5702fb53a3f155901e9fd2b731d9f4d06 /src/cat/LegacyLuaAPI.cpp | |
| parent | 2eaed9c9d478292f18d8a6aea9d2c9c869b26911 (diff) | |
| download | powder-29496cb6d3418eaed63f78a6624458ecf410bfc3.zip powder-29496cb6d3418eaed63f78a6624458ecf410bfc3.tar.gz | |
fix tpt.log so that when called multiple times, it doesn't overwrite the text
Diffstat (limited to 'src/cat/LegacyLuaAPI.cpp')
| -rw-r--r-- | src/cat/LegacyLuaAPI.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/cat/LegacyLuaAPI.cpp b/src/cat/LegacyLuaAPI.cpp index 75b6780..4abd041 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; |
