Vanilla Development Maling List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CVS update: Vanilla/ntserv
Date: Wednesday June 16, 1999 @ 14:06
Author: unbelver
Update of /home/netrek/cvsroot/Vanilla/ntserv
In directory cvs.castle.real-time.com:/var/tmp/cvs-serv6868
Modified Files:
commands.c
Log Message:
I found another incorrect voting frequency check. Same fix as "Can
only eject every 2.0 minutes" bug.
--Carlos V.
****************************************
Index: Vanilla/ntserv/commands.c
diff -u Vanilla/ntserv/commands.c:1.2 Vanilla/ntserv/commands.c:1.3
--- Vanilla/ntserv/commands.c:1.2 Fri Apr 30 15:18:41 1999
+++ Vanilla/ntserv/commands.c Wed Jun 16 14:06:20 1999
@@ -1152,7 +1152,7 @@
pcount++;
if (i==who) {
if ((j->voting[what] != 0) && (votes[num].frequency != 0)) {
- if (j->voting[what] < time(NULL) + votes[num].frequency) {
+ f ( (j->voting[what] + votes[num].frequency) > time(NULL) ) {
bounce(who,"Sorry, you can only use %s every %1.1f minutes",
votes[num].type, votes[num].frequency / 60.0);
return 0;