From c209aee0745646e316003ec59a978b9dd91f98ae Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Sun, 1 Oct 2017 10:51:05 -0400 Subject: [PATCH] Invalid command now outputs 1 line and doesn't output the command --- TGServiceInterface/Command.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/TGServiceInterface/Command.cs b/TGServiceInterface/Command.cs index 55c09830d7..ebdcefac50 100644 --- a/TGServiceInterface/Command.cs +++ b/TGServiceInterface/Command.cs @@ -77,8 +77,7 @@ namespace TGServiceInterface break; } } - OutputProc(String.Format("Invalid command: {0} {1}", Keyword, String.Join(" ", parameters))); - OutputProc(String.Format("Type '{0}?' or '{0}help' for available commands.", Keyword != null ? Keyword + " " : "")); + OutputProc(String.Format("Invalid command! Type '{0}?' or '{0}help' for available commands.", Keyword != null ? Keyword + " " : "")); return ExitCode.BadCommand; } public override void PrintHelp()