Noticias:

Debes de estar registrado para poder ver el contenido indicado. Registrate o Conectate

Menú Principal

Evitar Critical con el texto

Iniciado por Swarlog, Ago 12, 2022, 01:22 AM

Tema anterior - Siguiente tema

Swarlog

--- 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!");