summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2006-09-24 17:30:24 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2006-09-24 17:30:24 +0800
commitc4a8f8510d103417523fe86c06d74d8e5909a508 (patch)
treebf9e99be3c8fcad5d1cd99b88f2d4fde3bdfd227 /mbbsd
parent47de7f67da02e5f78dff031762272fc8b36dedf3 (diff)
downloadpttbbs-c4a8f8510d103417523fe86c06d74d8e5909a508.tar
pttbbs-c4a8f8510d103417523fe86c06d74d8e5909a508.tar.gz
pttbbs-c4a8f8510d103417523fe86c06d74d8e5909a508.tar.bz2
pttbbs-c4a8f8510d103417523fe86c06d74d8e5909a508.tar.lz
pttbbs-c4a8f8510d103417523fe86c06d74d8e5909a508.tar.xz
pttbbs-c4a8f8510d103417523fe86c06d74d8e5909a508.tar.zst
pttbbs-c4a8f8510d103417523fe86c06d74d8e5909a508.zip
change key of locking post from Ctrl('L') to Ctrl('E')
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3429 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/bbs.c35
1 files changed, 2 insertions, 33 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c
index ff234103..2d4c30d5 100644
--- a/mbbsd/bbs.c
+++ b/mbbsd/bbs.c
@@ -3383,37 +3383,6 @@ change_localsave(void)
#endif
}
-/**
- * 設定只有板友可 post 或全部人都可 post
- */
-static int
-change_restrictedpost(void)
-{
- vmsg("此功\能已整合進大寫 I 看板設定,請按 I 設定。");
- return FULLUPDATE;
-#if 0
- boardheader_t *bp;
- if (!HasUserPerm(PERM_SYSOP))
- return DONOTHING;
-
- bp = getbcache(currbid);
- if (bp->brdattr & BRD_RESTRICTEDPOST) {
- if (getans("目前只有板友可 post, 要開放嗎(y/N)?") != 'y')
- return FULLUPDATE;
- bp->brdattr &= ~BRD_RESTRICTEDPOST;
- outs("大家都可以 post 文章了。\n");
- } else {
- if (getans("目前全部人都可 post, 要限制為只有板友可 post 嗎(y/N)?") != 'y')
- return FULLUPDATE;
- bp->brdattr |= BRD_RESTRICTEDPOST;
- outs("只剩板友可以 post 了。\n");
- }
- substitute_record(fn_board, bp, sizeof(boardheader_t), currbid);
- pressanykey();
- return FULLUPDATE;
-#endif
-}
-
#ifdef USE_COOLDOWN
int check_cooldown(boardheader_t *bp)
@@ -3490,7 +3459,7 @@ const onekey_t read_comms[] = {
{ 0, NULL }, // Ctrl('B')
{ 0, NULL }, // Ctrl('C')
{ 0, NULL }, // Ctrl('D')
- { 0, change_restrictedpost }, // Ctrl('E')
+ { 1, lock_post }, // Ctrl('E')
{ 0, NULL }, // Ctrl('F')
#ifdef NO_GAMBLE
{ 0, NULL }, // Ctrl('G')
@@ -3501,7 +3470,7 @@ const onekey_t read_comms[] = {
{ 0, board_digest }, // Ctrl('I') KEY_TAB 9
{ 0, NULL }, // Ctrl('J')
{ 0, NULL }, // Ctrl('K')
- { 1, lock_post}, // Ctrl('L')
+ { 0, NULL }, // Ctrl('L')
{ 0, NULL }, // Ctrl('M')
#ifdef BMCHS
{ 0, change_counting }, // Ctrl('N')