diff options
author | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-05-09 23:06:22 +0800 |
---|---|---|
committer | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-05-09 23:06:22 +0800 |
commit | 547664b5427ad388486616be17f271ddcb2ba2ee (patch) | |
tree | 1f2068ab9a7a9b603e2ec0ecea3b04dbe32855ae /mbbsd/bbs.c | |
parent | 43c23212c73e8960fc1fdeb4849d327c28b3a5d9 (diff) | |
download | pttbbs-547664b5427ad388486616be17f271ddcb2ba2ee.tar pttbbs-547664b5427ad388486616be17f271ddcb2ba2ee.tar.gz pttbbs-547664b5427ad388486616be17f271ddcb2ba2ee.tar.bz2 pttbbs-547664b5427ad388486616be17f271ddcb2ba2ee.tar.lz pttbbs-547664b5427ad388486616be17f271ddcb2ba2ee.tar.xz pttbbs-547664b5427ad388486616be17f271ddcb2ba2ee.tar.zst pttbbs-547664b5427ad388486616be17f271ddcb2ba2ee.zip |
exit if recommend a blank line
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@831 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/bbs.c')
-rw-r--r-- | mbbsd/bbs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c index bc1cdcb3..6df7f4da 100644 --- a/mbbsd/bbs.c +++ b/mbbsd/bbs.c @@ -1,4 +1,4 @@ -/* $Id: bbs.c,v 1.90 2003/05/07 08:16:30 victor Exp $ */ +/* $Id: bbs.c,v 1.91 2003/05/09 15:06:22 victor Exp $ */ #include "bbs.h" static int recommend(int ent, fileheader_t * fhdr, char *direct); @@ -1263,6 +1263,7 @@ recommend(int ent, fileheader_t * fhdr, char *direct) #endif if (!getdata(b_lines - 2, 0, "推薦語:", path, 40, DOECHO) || + path == NULL || !getdata(b_lines - 1, 0, "確定要推薦, 請仔細考慮(Y/N)?[n] ", yn, 5, LCECHO) || yn[0] != 'y') |