mirror of
https://github.com/pragma-/pbot.git
synced 2025-01-11 12:32:37 +01:00
Fix preserve whitespace setting
This commit is contained in:
parent
6912e53c0a
commit
89f38026d3
@ -444,7 +444,7 @@ sub handle_result {
|
||||
my $preserve_newlines = $self->{pbot}->{registry}->get_value($stuff->{from}, 'preserve_newlines');
|
||||
|
||||
$result =~ s/[\n\r]/ /g unless $preserve_newlines;
|
||||
$result =~ s/[ \t]+/ /g unless $self->{preserve_whitespace};
|
||||
$result =~ s/[ \t]+/ /g unless $stuff->{preserve_whitespace};
|
||||
|
||||
my $max_lines = $self->{pbot}->{registry}->get_value($stuff->{from}, 'max_newlines');
|
||||
$max_lines = 4 if not defined $max_lines;
|
||||
|
Loading…
Reference in New Issue
Block a user