From b7a9575c15191b995c66121c35f6896f9497e5d0 Mon Sep 17 00:00:00 2001 From: Daniel-I-Am Date: Sun, 27 Sep 2020 12:33:42 +0200 Subject: [PATCH] Trim output to treat `\n` as empty message --- .../LuaProgrammingLanguageInterpreter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ChaosBot/Services/ProgrammingLanguageInterpreter/LuaProgrammingLanguageInterpreter.cs b/ChaosBot/Services/ProgrammingLanguageInterpreter/LuaProgrammingLanguageInterpreter.cs index 94a0a40..bd55f54 100644 --- a/ChaosBot/Services/ProgrammingLanguageInterpreter/LuaProgrammingLanguageInterpreter.cs +++ b/ChaosBot/Services/ProgrammingLanguageInterpreter/LuaProgrammingLanguageInterpreter.cs @@ -40,7 +40,7 @@ namespace ChaosBot.Services.ProgrammingLanguageInterpreter _state.DoString(content, command); LoggingFacade.Trace("Returning Lua output"); - return _outputBuilder.ToString(); + return _outputBuilder.ToString().Trim(); } private void LuaDebugHook(object sender, NLua.Event.DebugHookEventArgs e)