diff options
author | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2006-05-19 12:09:36 +0800 |
---|---|---|
committer | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2006-05-19 12:09:36 +0800 |
commit | 201a455628350fa5b74ff259fecb920c6e253a56 (patch) | |
tree | 1535c35d79550f6ecc33892e41e55c36f17d63c1 | |
parent | 5d77e309ff86042fe664d4a75f8ca954e6fa3873 (diff) | |
download | pttbbs-201a455628350fa5b74ff259fecb920c6e253a56.tar pttbbs-201a455628350fa5b74ff259fecb920c6e253a56.tar.gz pttbbs-201a455628350fa5b74ff259fecb920c6e253a56.tar.bz2 pttbbs-201a455628350fa5b74ff259fecb920c6e253a56.tar.lz pttbbs-201a455628350fa5b74ff259fecb920c6e253a56.tar.xz pttbbs-201a455628350fa5b74ff259fecb920c6e253a56.tar.zst pttbbs-201a455628350fa5b74ff259fecb920c6e253a56.zip |
give a message if nothing found
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3359 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/board.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/mbbsd/board.c b/mbbsd/board.c index 2794d735..d5dbe4d5 100644 --- a/mbbsd/board.c +++ b/mbbsd/board.c @@ -724,14 +724,13 @@ choose_board(int newflag) if (brdnum <= 0) { load_boards(keyword); if (brdnum <= 0) { + if (keyword[0] != 0) { + vmsg("沒有任何看板標題有此關鍵字"); + keyword[0] = 0; + brdnum = -1; + continue; + } if (IS_LISTING_BRD()) { - if (keyword[0] != 0) { - vmsg("沒有任何看板標題有此關鍵字 " - "(板主應注意看板標題命名)"); - keyword[0] = 0; - brdnum = -1; - continue; - } if (HasUserPerm(PERM_SYSOP) || GROUPOP()) { if (paste_taged_brds(class_bid) || m_newbrd(class_bid, 0) == -1) |