X-Git-Url: https://code.th-h.de/?p=usenet%2Fusevote.git;a=blobdiff_plain;f=uvvote.pl;h=c0c3712f62f50a842eb94ffe77b49549af6a6de2;hp=5cff3759686807a8c6a8230979ea7408c7e734b8;hb=e670e40bb0f2864e7ac72b348a44e66e9fcab095;hpb=34809a2a81332b011af9f6055a8e3b846053d491 diff --git a/uvvote.pl b/uvvote.pl index 5cff375..c0c3712 100755 --- a/uvvote.pl +++ b/uvvote.pl @@ -273,7 +273,7 @@ sub process_vote { # 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";