summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-11-12 00:03:26 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-11-12 00:03:26 +0800
commit0b4b6985bb6faa75e73107dd2f0807171bf138f1 (patch)
tree0ce1e0f10cf30e15d46b3a7b6695974a856d73c1 /mbbsd
parent89789f8d17b871662828aa065bc768e127f9a7e7 (diff)
downloadpttbbs-0b4b6985bb6faa75e73107dd2f0807171bf138f1.tar
pttbbs-0b4b6985bb6faa75e73107dd2f0807171bf138f1.tar.gz
pttbbs-0b4b6985bb6faa75e73107dd2f0807171bf138f1.tar.bz2
pttbbs-0b4b6985bb6faa75e73107dd2f0807171bf138f1.tar.lz
pttbbs-0b4b6985bb6faa75e73107dd2f0807171bf138f1.tar.xz
pttbbs-0b4b6985bb6faa75e73107dd2f0807171bf138f1.tar.zst
pttbbs-0b4b6985bb6faa75e73107dd2f0807171bf138f1.zip
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1319 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/voteboard.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/mbbsd/voteboard.c b/mbbsd/voteboard.c
index 2a899227..f7446799 100644
--- a/mbbsd/voteboard.c
+++ b/mbbsd/voteboard.c
@@ -68,7 +68,7 @@ do_voteboardreply(fileheader_t * fhdr)
if (!strncmp(genbuf + 4, cuser.userid, len)) {
move(5, 10);
prints("您已經連署過本篇了");
- getdata(7, 0, "要修改您之前的連署嗎?(Y/N) [N]", opnion, 3, LCECHO);
+ getdata(17, 0, "要修改您之前的連署嗎?(Y/N) [N]", opnion, 3, LCECHO);
if (opnion[0] != 'y') {
fclose(fi);
return;
@@ -79,7 +79,7 @@ do_voteboardreply(fileheader_t * fhdr)
}
fclose(fi);
do {
- if (!getdata(18, 0, "請問您 (Y)支持 (N)反對 這個議題:", opnion, 3, LCECHO)) {
+ if (!getdata(19, 0, "請問您 (Y)支持 (N)反對 這個議題:", opnion, 3, LCECHO)) {
return;
}
} while (opnion[0] != 'y' && opnion[0] != 'n');
@@ -119,8 +119,8 @@ do_voteboardreply(fileheader_t * fhdr)
break;
if (!strncmp(genbuf + 4, cuser.userid, len))
continue;
- yes++;
- fprintf(fo, "%3d.%s", yes, genbuf + 4);
+ if(strlen(genbuf)>10);
+ fprintf(fo, "%3d.%s", ++yes, genbuf + 4);
}
if (opnion[0] == 'y')
fprintf(fo, "%3d.%-15s%-34s 來源:%s\n", ++yes, cuser.userid, reason, cuser.lasthost);
@@ -131,8 +131,8 @@ do_voteboardreply(fileheader_t * fhdr)
break;
if (!strncmp(genbuf + 4, cuser.userid, len))
continue;
- no++;
- fprintf(fo, "%3d.%s", no, genbuf + 4);
+ if(strlen(genbuf)>10);
+ fprintf(fo, "%3d.%s", ++no, genbuf + 4);
}
if (opnion[0] == 'n')
fprintf(fo, "%3d.%-15s%-34s 來源:%s\n", ++no, cuser.userid, reason, cuser.lasthost);