projects
/
usenet
/
usevote.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update documentation from upstream.
[usenet/usevote.git]
/
uvvote.pl
diff --git
a/uvvote.pl
b/uvvote.pl
index
5cff375
..
c101f1f
100755
(executable)
--- a/
uvvote.pl
+++ b/
uvvote.pl
@@
-1,8
+1,8
@@
#!/usr/bin/perl -w
###############################################################################
#!/usr/bin/perl -w
###############################################################################
-# UseVoteGer 4.1
1
Wahldurchfuehrung
-# (c) 2001-201
2
Marc Langer <uv@marclanger.de>
+# UseVoteGer 4.1
2
Wahldurchfuehrung
+# (c) 2001-201
4
Marc Langer <uv@marclanger.de>
#
# This script package is free software; you can redistribute it and/or
# modify it under the terms of the GNU Public License as published by the
#
# This script package is free software; you can redistribute it and/or
# modify it under the terms of the GNU Public License as published by the
@@
-122,9
+122,9
@@
if ($clean) {
# normally unixtime is sufficient, if it is not unique append our PID
my $ext = time;
# 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);
opendir (FERTIG, $config{archivedir});
my @fertigfiles = readdir (FERTIG);
closedir (FERTIG);
@@
-273,7
+273,7
@@
sub process_vote {
# this matches on a single appearance:
if ($$body =~ /#$votenum\W*?\[(.+)\]/) {
# one or more vote strings were found
# 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";
my $votestring = $1;
if ($votestring =~ /^\W*$config{ja_stimme}\W*$/i) {
$vote = "J";
This page took
0.011069 seconds
and
4
git commands to generate.