mirror of
				https://github.com/pragma-/pbot.git
				synced 2025-11-04 00:27:23 +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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user