Noticias:

No tienes permiso para ver los enlaces. Para poder verlos Registrate o Conectate.

Menú Principal

Evitar Critical con el texto

Iniciado por Swarlog, Jun 25, 2025, 09:31 PM

Tema anterior - Siguiente tema

Swarlog

--- trunk/GameServer/java/com/l2dot/gameserver/network/clientpackets/Say2.java (revision 5)
+++ trunk/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!");