Browse Source

Let's remove this limit, not needed since c4, thanks denser & Qwerty13.

MELERIX 14 years ago
parent
commit
76bf3347af

+ 4 - 7
L2J_Server/java/com/l2jserver/gameserver/network/serverpackets/NpcHtmlMessage.java

@@ -182,13 +182,10 @@ public final class NpcHtmlMessage extends L2GameServerPacket
 	
 	public void setHtml(String text)
 	{
-		if(text.length() > 8192)
-		{
-			_log.warning("Html is too long! this will crash the client!");
-			_html = "<html><body>Html was too long</body></html>";
-			return;
-		}
-		_html = text; // html code must not exceed 8192 bytes
+		if(!text.contains("<html>"))
+			text = "<html><body>" + text + "</body></html>";
+
+		_html = text;
 	}
 	
 	public boolean setFile(String prefix, String path)