summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsnowleo <schneeleo@gmail.com>2011-10-27 00:06:15 +0200
committersnowleo <schneeleo@gmail.com>2011-10-27 00:06:15 +0200
commit1de5cb6dbd74e4653a2638bbcd67ecca207f5687 (patch)
treeb7040f5b703f328bf3dffd78fd38d6705151788c
parent19dfef1a4fcb206f35a168b412147e86de326395 (diff)
downloadEssentials-1de5cb6dbd74e4653a2638bbcd67ecca207f5687.tar
Essentials-1de5cb6dbd74e4653a2638bbcd67ecca207f5687.tar.gz
Essentials-1de5cb6dbd74e4653a2638bbcd67ecca207f5687.tar.lz
Essentials-1de5cb6dbd74e4653a2638bbcd67ecca207f5687.tar.xz
Essentials-1de5cb6dbd74e4653a2638bbcd67ecca207f5687.zip
Crop after 15KB and add a note, that it's cropped by the upload.
-rw-r--r--EssentialsUpdate/src/com/earth2me/essentials/update/chat/AbstractFileCommand.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/EssentialsUpdate/src/com/earth2me/essentials/update/chat/AbstractFileCommand.java b/EssentialsUpdate/src/com/earth2me/essentials/update/chat/AbstractFileCommand.java
index 12aa3326e..58bbb25b0 100644
--- a/EssentialsUpdate/src/com/earth2me/essentials/update/chat/AbstractFileCommand.java
+++ b/EssentialsUpdate/src/com/earth2me/essentials/update/chat/AbstractFileCommand.java
@@ -58,9 +58,10 @@ public abstract class AbstractFileCommand implements Command
protected String uploadToPastie(final StringBuilder input) throws IOException
{
- if (input.length() > 10000)
+ if (input.length() > 15000)
{
- input.delete(0, input.length() - 10000);
+ input.delete(0, input.length() - 15000);
+ input.append("## Cropped after 15000 bytes");
}
final PastieUpload pastie = new PastieUpload();
return pastie.send(input.toString());