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:
parent
f6827aa886
commit
17a62b48e4
@ -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';
|
||||
|
Loading…
Reference in New Issue
Block a user