3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-01 17:16:39 +02:00

compiler_vm: Don't display "Same output" unless length of output is greater than 10 characters

This commit is contained in:
Pragmatic Software 2014-04-03 07:54:35 +00:00
parent 8a7c539e0f
commit 736056b586
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ use warnings;
# These are set automatically by the build/commit script
use constant {
BUILD_NAME => "PBot",
BUILD_REVISION => 539,
BUILD_REVISION => 540,
BUILD_DATE => "2014-04-03",
};

View File

@ -1143,7 +1143,7 @@ if(defined $got_paste or (defined $got_run and $got_run eq "paste")) {
exit 0;
}
if(open FILE, "< history/$channel.last-output") {
if(length $output > 10 and open FILE, "< history/$channel.last-output") {
my $last_output;
my $time = <FILE>;