Skip to content

Commit 282650f

Browse files
committed
Always shorten the filename, not just sometimes
1 parent af272a7 commit 282650f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

evalbot.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,6 @@ package Evalbot;
229229
for my $eval_name (@{ $aliases{$eval_name} }) {
230230
my $e = $impls{$eval_name};
231231
my $tmp_res = EvalbotExecuter::run($str, $e, $eval_name);
232-
$tmp_res =~ s|/tmp/\w{10}|/tmp/tmpfile|g;
233232
my $revision = '';
234233
if (reftype($e) eq 'HASH' && $e->{revision}){
235234
$revision = $e->{revision}->();
@@ -299,6 +298,7 @@ package Evalbot;
299298
my $null = "\N{SYMBOL FOR NULL}";
300299
$response =~ s/\n/$newline/g;
301300
$response =~ s/\x00/$null/g;
301+
$response =~ s|/tmp/\w{10}|/tmp/tmpfile|g;
302302
$response = IRC::FromANSI::Tiny::convert($response);
303303

304304
my $format_len = length(encode_utf8(sprintf $format_res, $prefix, ''));

0 commit comments

Comments
 (0)