diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-01-08 00:53:24 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-01-08 00:53:24 +0800 |
commit | 3e6d4b2f59d6f4ba8120e9e7772932375b8f5a3e (patch) | |
tree | b213d9d7c667adb9dc817be00097e451007bf426 /mbbsd/board.c | |
parent | 968e680633cbd1da3e6d0f87f0555d0ef1d6f7bd (diff) | |
download | pttbbs-3e6d4b2f59d6f4ba8120e9e7772932375b8f5a3e.tar pttbbs-3e6d4b2f59d6f4ba8120e9e7772932375b8f5a3e.tar.gz pttbbs-3e6d4b2f59d6f4ba8120e9e7772932375b8f5a3e.tar.bz2 pttbbs-3e6d4b2f59d6f4ba8120e9e7772932375b8f5a3e.tar.lz pttbbs-3e6d4b2f59d6f4ba8120e9e7772932375b8f5a3e.tar.xz pttbbs-3e6d4b2f59d6f4ba8120e9e7772932375b8f5a3e.tar.zst pttbbs-3e6d4b2f59d6f4ba8120e9e7772932375b8f5a3e.zip |
- refine limit edit source
- move M (maintain vote) to integrated board config
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3806 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/board.c')
-rw-r--r-- | mbbsd/board.c | 46 |
1 files changed, 33 insertions, 13 deletions
diff --git a/mbbsd/board.c b/mbbsd/board.c index a04cfa21..adbefaa1 100644 --- a/mbbsd/board.c +++ b/mbbsd/board.c @@ -292,9 +292,9 @@ b_config(void) grayout(0, ytitle-2, GRAYOUT_DARK); // available hotkeys yet: - // a b d j k m p q z - // 2 3 4 5 6 7 9 0 - // better not: l + // a b d j k p q z + // 2 3 4 5 6 7 9 + // better not: l 0 while(!finished) { move(ytitle-1, 0); clrtobot(); @@ -444,20 +444,34 @@ b_config(void) ); } - if (isBM) { + const char *aCat = ANSI_COLOR(1;32); + const char *aHot = ANSI_COLOR(1;36); + const char *aRst = ANSI_RESET; + + if (!isBM) + { + aCat = ANSI_COLOR(1;30;40); + aHot = ""; + aRst = ""; + } + ipostres ++; move_ansi(ipostres++, COLPOSTRES-2); - outs(ANSI_COLOR(1;32) "名單編輯與其它:" ANSI_RESET); + outs(aCat); + outs("名單編輯與其它:"); + if (!isBM) outs(" (需板主權限)"); + outs(aRst); move_ansi(ipostres++, COLPOSTRES); - outs(ANSI_COLOR(1;36) "v" ANSI_RESET ")可見名單 " - ANSI_COLOR(1;36) "w" ANSI_RESET ")水桶名單 "); + prints("%sv%s)可見名單 %sw%s)水桶名單 ", + aHot, aRst, aHot, aRst); move_ansi(ipostres++, COLPOSTRES); - outs(ANSI_COLOR(1;36) "o" ANSI_RESET ")投票名單 "); - //ANSI_COLOR(1;36) "w" ANSI_RESET ")水桶名單 "); + prints("%sm%s)舉辦投票 %so%s)投票名單 ", + aHot, aRst, aHot, aRst); move_ansi(ipostres++, COLPOSTRES); - outs(ANSI_COLOR(1;36) "c" ANSI_RESET ")文章類別 " - ANSI_COLOR(1;36) "n" ANSI_RESET ")發文注意事項 "); + prints("%sc%s)文章類別 %sn%s)發文注意事項 ", + aHot, aRst, aHot, aRst); + outs(ANSI_RESET); } move(b_lines, 0); @@ -586,14 +600,20 @@ b_config(void) clear(); break; + case 'w': + clear(); + friend_edit(BOARD_WATER); + clear(); + break; + case 'o': clear(); friend_edit(FRIEND_CANVOTE); clear(); - case 'w': + case 'm': clear(); - friend_edit(BOARD_WATER); + b_vote_maintain(); clear(); break; |