diff options
author | snowleo <schneeleo@gmail.com> | 2011-10-27 00:06:15 +0200 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2011-10-27 00:06:15 +0200 |
commit | 1de5cb6dbd74e4653a2638bbcd67ecca207f5687 (patch) | |
tree | b7040f5b703f328bf3dffd78fd38d6705151788c /EssentialsUpdate/src/com/earth2me | |
parent | 19dfef1a4fcb206f35a168b412147e86de326395 (diff) | |
download | Essentials-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.
Diffstat (limited to 'EssentialsUpdate/src/com/earth2me')
-rw-r--r-- | EssentialsUpdate/src/com/earth2me/essentials/update/chat/AbstractFileCommand.java | 5 |
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()); |