diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2007-12-01 15:58:43 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2007-12-01 15:58:43 +0800 |
commit | a94b472a72351631253be327d73738cc4d0dd00d (patch) | |
tree | 51aa0170f6ba89561451469efb067290191920e3 /mbbsd/board.c | |
parent | 1d8009f548a41b171b7c9ef562ce043f7103b671 (diff) | |
download | pttbbs-a94b472a72351631253be327d73738cc4d0dd00d.tar pttbbs-a94b472a72351631253be327d73738cc4d0dd00d.tar.gz pttbbs-a94b472a72351631253be327d73738cc4d0dd00d.tar.bz2 pttbbs-a94b472a72351631253be327d73738cc4d0dd00d.tar.lz pttbbs-a94b472a72351631253be327d73738cc4d0dd00d.tar.xz pttbbs-a94b472a72351631253be327d73738cc4d0dd00d.tar.zst pttbbs-a94b472a72351631253be327d73738cc4d0dd00d.zip |
General Update by PttSuggest:
- 'w' in mail can msg
- author in mail header will highlight if online
- recommendation message fix
- ignore empty input for login
- better prompt for empty fav
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3599 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/board.c')
-rw-r--r-- | mbbsd/board.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/mbbsd/board.c b/mbbsd/board.c index 90482d17..51e46819 100644 --- a/mbbsd/board.c +++ b/mbbsd/board.c @@ -606,7 +606,17 @@ show_brdlist(int head, int clsflag, int newflag) char *unread[2] = {ANSI_COLOR(37) " " ANSI_RESET, ANSI_COLOR(1;31) "ˇ" ANSI_RESET}; if (IS_LISTING_FAV() && brdnum == 1 && get_fav_type(&nbrd[0]) == 0) { - mouts(3, 0, " --- 空目錄 - 請按 a (add) 或 i (insert) 加入看板 ---"); + + // (a) or (i) needs HasUserPerm(PERM_LOGINOK)). + if (!HasUserPerm(PERM_LOGINOK)) + { + mouts(10, 0, + "--- 抱歉,註冊完成的使用者才能新增看板喔 (可按 s 手動選取) ---"); + } else { + // normal user. tell him what to do. + mouts(10, 0, + "--- 空目錄,請按 a 新增或用 y 列出全部看板後按 z 增刪 ---"); + } return; } |