# normally unixtime is sufficient, if it is not unique append our PID
my $ext = time;
- opendir (DIR, $config{tmpdir});
- my @tmpfiles = readdir (DIR);
- closedir (DIR);
+ opendir (TMP, $config{tmpdir});
+ my @tmpfiles = readdir (TMP);
+ closedir (TMP);
opendir (FERTIG, $config{archivedir});
my @fertigfiles = readdir (FERTIG);
closedir (FERTIG);
# this matches on a single appearance:
if ($$body =~ /#$votenum\W*?\[(.+)\]/) {
# one or more vote strings were found
- $onevote = 1;
+ $onevote ||= 1; # set $onevote to 1 if it was 0
my $votestring = $1;
if ($votestring =~ /^\W*$config{ja_stimme}\W*$/i) {
$vote = "J";