Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Always shorten the filename, not just sometimes
  • Loading branch information
AlexDaniel committed Jun 10, 2016
1 parent af272a7 commit 282650f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion evalbot.pl
Expand Up @@ -229,7 +229,6 @@ package Evalbot;
for my $eval_name (@{ $aliases{$eval_name} }) {
my $e = $impls{$eval_name};
my $tmp_res = EvalbotExecuter::run($str, $e, $eval_name);
$tmp_res =~ s|/tmp/\w{10}|/tmp/tmpfile|g;
my $revision = '';
if (reftype($e) eq 'HASH' && $e->{revision}){
$revision = $e->{revision}->();
Expand Down Expand Up @@ -299,6 +298,7 @@ package Evalbot;
my $null = "\N{SYMBOL FOR NULL}";
$response =~ s/\n/$newline/g;
$response =~ s/\x00/$null/g;
$response =~ s|/tmp/\w{10}|/tmp/tmpfile|g;
$response = IRC::FromANSI::Tiny::convert($response);

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

0 comments on commit 282650f

Please sign in to comment.