diff options
author | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-08-04 11:28:03 +0800 |
---|---|---|
committer | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-08-04 11:28:03 +0800 |
commit | 3cfbc9d6e1b548904c323e8c9a782ca0e82e1c4f (patch) | |
tree | 0f02d2f3430a3a4c83e065be714911e6692973a2 /mbbsd/vote.c | |
parent | 0e2472de4ee9255a0c26b8cffdbeedb886d57c68 (diff) | |
download | pttbbs-3cfbc9d6e1b548904c323e8c9a782ca0e82e1c4f.tar pttbbs-3cfbc9d6e1b548904c323e8c9a782ca0e82e1c4f.tar.gz pttbbs-3cfbc9d6e1b548904c323e8c9a782ca0e82e1c4f.tar.bz2 pttbbs-3cfbc9d6e1b548904c323e8c9a782ca0e82e1c4f.tar.lz pttbbs-3cfbc9d6e1b548904c323e8c9a782ca0e82e1c4f.tar.xz pttbbs-3cfbc9d6e1b548904c323e8c9a782ca0e82e1c4f.tar.zst pttbbs-3cfbc9d6e1b548904c323e8c9a782ca0e82e1c4f.zip |
Use file_exist_record directly
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4392 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/vote.c')
-rw-r--r-- | mbbsd/vote.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mbbsd/vote.c b/mbbsd/vote.c index ff6cbb96..f64a6f7e 100644 --- a/mbbsd/vote.c +++ b/mbbsd/vote.c @@ -789,7 +789,7 @@ user_vote_one(vote_buffer_t *vbuf, const char *bname, int ind) setbfile(buf, bname, vbuf->limited); /* Ptt */ if (dashf(buf)) { setbfile(buf, bname, FN_CANVOTE); - if (!belong(buf, cuser.userid)) { + if (!file_exist_record(buf, cuser.userid)) { fclose(cfp); vmsg("對不起! 這是私人投票..你並沒有受邀唷!"); return FULLUPDATE; |