From 31ecd57a34c7612ad3289e267a0476c34b25779b Mon Sep 17 00:00:00 2001 From: Cyberboss Date: Wed, 6 Sep 2017 15:46:20 -0400 Subject: [PATCH] Adds compatibility for zbot to chat commands --- TGServerService/ChatCommands.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TGServerService/ChatCommands.cs b/TGServerService/ChatCommands.cs index f0659c9c87..9349288488 100644 --- a/TGServerService/ChatCommands.cs +++ b/TGServerService/ChatCommands.cs @@ -82,7 +82,7 @@ namespace TGServerService } protected override ExitCode Run(IList parameters) { - OutputProc(Instance.GetHead(out string error) ?? error); + OutputProc(String.Format("^{0}", Instance.GetHead(out string error)) ?? error); return error == null ? ExitCode.Normal : ExitCode.ServerError; } @@ -173,7 +173,7 @@ namespace TGServerService { res = ""; foreach (var I in PRs) - res += I.Number + " "; + res += "#" + I.Number + " "; OutputProc(res); } return ExitCode.Normal;