summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-04-16 21:27:07 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-04-16 21:27:07 +0800
commit749cbf02649e66d486a98bbe4ae9ac9d620f9ce9 (patch)
treef5823e12e4b32b70f0ee391e770e3a2285af114e
parent87c52669138a2f93406d7b7fae6967955c6b8ce6 (diff)
downloadpttbbs-749cbf02649e66d486a98bbe4ae9ac9d620f9ce9.tar
pttbbs-749cbf02649e66d486a98bbe4ae9ac9d620f9ce9.tar.gz
pttbbs-749cbf02649e66d486a98bbe4ae9ac9d620f9ce9.tar.bz2
pttbbs-749cbf02649e66d486a98bbe4ae9ac9d620f9ce9.tar.lz
pttbbs-749cbf02649e66d486a98bbe4ae9ac9d620f9ce9.tar.xz
pttbbs-749cbf02649e66d486a98bbe4ae9ac9d620f9ce9.tar.zst
pttbbs-749cbf02649e66d486a98bbe4ae9ac9d620f9ce9.zip
CheckPostPerm depends on currboard. However, it's undefined in your mailbox.
There is another haspostperm() after that, let me assume it's enough. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3506 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/bbs.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c
index a7160a0c..3261affa 100644
--- a/mbbsd/bbs.c
+++ b/mbbsd/bbs.c
@@ -213,7 +213,9 @@ set_board(void)
}
}
-/* check post perm on demand, no double checks in current board */
+/* check post perm on demand, no double checks in current board
+ * currboard MUST be defined!
+ * XXX can we replace currboard with currbid ? */
int
CheckPostPerm(void)
{
@@ -1432,10 +1434,6 @@ cross_post(int ent, fileheader_t * fhdr, const char *direct)
int author;
boardheader_t *bp;
- if (!CheckPostPerm()) {
- vmsg("對不起,您目前無法轉錄文章!");
- return FULLUPDATE;
- }
move(2, 0);
clrtoeol();
move(1, 0);