30-10-2011, 03:12 AM
#1 (permalink )
Banido
Registrado em: Nov 2009
Localização: Fortaleza-ce
Posts: 325
Agradecido 203 Vezes em 82 Posts
Achei Ruim:
Acharam ruim Vezes em Posts
Nome Real: Allan Alcântara de Alencar
Inventório de allanalcantara
Anti Critical Error
Mais outro mod bem simples. pra vocês.
Abraços.
um Ant Critical Error!
--- trunk/L2J-Mack_IL/L2J-Mack_GameServer/java/com/l2dot/gameserver/network/clientpackets/Say2.java (revision 5)
+++ trunk/L2J-Mack_IL/L2J-Mack_GameServer/java/com/l2dot/gameserver/network/clientpackets/Say2.java (revision 17)
@@ -121,7 +121,13 @@
_log.warning("[Say2.java] Active Character is null.");
return;
}
-
+
+ if (_text.length() >= 100)
+ {
+ _log.warning("Say2: Max input exceeded.");
+ return;
+ }
+
if (_text.length() > 100)
{
_log.info("PHX usage attempt!" + activeChar.getName() + "try to use phx critical exploit! BAN this player!");