Change for vanilla whisper detection

- Before: Player whispers message
- After: Player whispers to you: message
This commit is contained in:
ORelio 2014-01-18 01:09:21 +01:00
parent 07ef031bb9
commit 7f65a5d69e

View file

@ -127,10 +127,10 @@ namespace MinecraftClient
try
{
//Detect vanilla /tell messages
//Someone whispers message
//Someone whispers to you: message
if (tmp.Length > 2 && tmp[1] == "whispers")
{
message = text.Substring(tmp[0].Length + 10);
message = text.Substring(tmp[0].Length + 18);
sender = tmp[0];
return isValidName(sender);
}