From c0275528e6d1902577d7836f6d1c1ea24a136668 Mon Sep 17 00:00:00 2001 From: Jamie Sinn Date: Sat, 21 Feb 2015 13:47:36 -0500 Subject: [PATCH] Add in game chat to be controlled via remote cntrl --- MinecraftClient/ChatBots/RemoteControl.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/MinecraftClient/ChatBots/RemoteControl.cs b/MinecraftClient/ChatBots/RemoteControl.cs index dfdf5d2a35..187f8df043 100644 --- a/MinecraftClient/ChatBots/RemoteControl.cs +++ b/MinecraftClient/ChatBots/RemoteControl.cs @@ -18,7 +18,11 @@ public override void GetText(string text) if (isPrivateMessage(text, ref command, ref sender) && Settings.Bots_Owners.Contains(sender.ToLower().Trim())) { string response = ""; - performInternalCommand(command, ref response); + if(command.StartsWith(Settings.internalCmdChar.ToString())) + performInternalCommand(command.Substring(1), ref response); + else + SendText(command); + if (response.Length > 0) { SendPrivateMessage(sender, response);