Fix null characters in chat prompt (old bug)

Sometimes null characters were inserted in chat prompt
Rename "Scripting" bot into "Script" bot.
This commit is contained in:
ORelio 2014-04-10 19:55:16 +02:00
parent b0e4e993ce
commit a543620a80
5 changed files with 23 additions and 14 deletions

View file

@ -597,12 +597,12 @@ namespace MinecraftClient
catch (ObjectDisposedException) { }
foreach (ChatBot bot in bots)
if (bot is Bots.Scripting)
scripts_on_hold.Add((Bots.Scripting)bot);
if (bot is Bots.Script)
scripts_on_hold.Add((Bots.Script)bot);
}
private List<ChatBot> bots = new List<ChatBot>();
private static List<Bots.Scripting> scripts_on_hold = new List<Bots.Scripting>();
private static List<Bots.Script> scripts_on_hold = new List<Bots.Script>();
public void BotLoad(ChatBot b) { b.SetHandler(this); bots.Add(b); b.Initialize(); Settings.SingleCommand = ""; }
public void BotUnLoad(ChatBot b) { bots.RemoveAll(item => object.ReferenceEquals(item, b)); }
public void BotClear() { bots.Clear(); }