First run fixes for fortune commands, also fixes for karma

This commit is contained in:
eleksir
2020-11-22 16:29:26 +03:00
parent ad37a349c1
commit 63304d6bb9
3 changed files with 7 additions and 7 deletions

View File

@@ -42,7 +42,7 @@ sub seed () {
while (my $fortunefile = readdir ($srcdirhandle)) {
my $srcfile = sprintf '%s/%s', $srcdir, $fortunefile;
next unless (-f $srcfile);
next if (m/[\.|\$|\@]/);
next if ($fortunefile =~ m/\./);
open (my $fh, '<', $srcfile) || croak "Unable to open $srcfile, $OS_ERROR\n";
# set correct phrase delimiter
local $INPUT_RECORD_SEPARATOR = "\n%\n";
@@ -145,7 +145,7 @@ sub fortune_status ($) {
if (defined $state && $state) {
$phrase .= 'показываtтся.';
} else {
$phrase .= 'yt показываtтся.';
$phrase .= 'не показывается.';
}
untie %toggle;