Fix Jexius's font exploit.

This commit is contained in:
Deathmax 2011-07-09 21:17:54 +08:00
parent 0b6777ba85
commit 1cd0f4c74b
5 changed files with 25 additions and 1 deletions

View file

@ -319,6 +319,16 @@ namespace TShockAPI
return;
}
foreach (var character in text)
{
if (Resources.mousefontchars.IndexOf(character) == -1)
{
Tools.HandleCheater(tsplr, "Attempted to crash clients");
e.Handled = true;
return;
}
}
if (msg.whoAmI != ply)
{
e.Handled = Tools.HandleGriefer(tsplr, "Faking Chat");