3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-22 20:09:43 +01:00

Limit truncation pastes to 8000 bytes

This commit is contained in:
Pragmatic Software 2017-08-24 15:16:42 -07:00
parent f6827aa886
commit 17a62b48e4

View File

@ -241,6 +241,7 @@ sub truncate_result {
if(length $result > $max_msg_len) {
my $link;
if($paste) {
$original_result = substr $original_result, 0, 8000;
$link = $self->paste("[" . (defined $from ? $from : "stdin") . "] <$nick> $text\n\n$original_result");
} else {
$link = 'undef';