Fix Jexius's font exploit.
This commit is contained in:
parent
0b6777ba85
commit
1cd0f4c74b
5 changed files with 25 additions and 1 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue