diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-09-04 20:54:51 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-09-04 20:54:51 +0800 |
commit | 46e117312e3d19c798496452158a6a96df24be7d (patch) | |
tree | ab62090195f0bc7d8c7329cbd1a94e54a4e9f70d /mbbsd | |
parent | 17c0693fc7c47beb18297e741c347a2876f28884 (diff) | |
download | pttbbs-46e117312e3d19c798496452158a6a96df24be7d.tar pttbbs-46e117312e3d19c798496452158a6a96df24be7d.tar.gz pttbbs-46e117312e3d19c798496452158a6a96df24be7d.tar.bz2 pttbbs-46e117312e3d19c798496452158a6a96df24be7d.tar.lz pttbbs-46e117312e3d19c798496452158a6a96df24be7d.tar.xz pttbbs-46e117312e3d19c798496452158a6a96df24be7d.tar.zst pttbbs-46e117312e3d19c798496452158a6a96df24be7d.zip |
revert last domenu() fix, change the permission setting instead
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@509 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/menu.c | 13 | ||||
-rw-r--r-- | mbbsd/var.c | 4 |
2 files changed, 6 insertions, 11 deletions
diff --git a/mbbsd/menu.c b/mbbsd/menu.c index 755a4319..0fe3bd60 100644 --- a/mbbsd/menu.c +++ b/mbbsd/menu.c @@ -1,4 +1,4 @@ -/* $Id: menu.c,v 1.18 2002/08/27 21:49:18 kcwu Exp $ */ +/* $Id: menu.c,v 1.19 2002/09/04 12:54:50 kcwu Exp $ */ #include "bbs.h" /* help & menu processring */ @@ -185,10 +185,9 @@ domenu(int cmdmode, char *cmdtitle, int cmd, commands_t cmdtable[]) int chkmailbox(); static char cmd0[LOGIN]; + /* XXX: 傳進來的 cmd 若權限不足, 則不知 cursor 在哪, 導致 crash */ if (cmd0[cmdmode]) cmd = cmd0[cmdmode]; - else - cmd = KEY_HOME; setutmpmode(cmdmode); @@ -477,7 +476,8 @@ static commands_t playlist[] = { #endif {note, PERM_LOGINOK, "NNote 【 刻刻流言板 】"}, {x_weather,0 , "WWeather 【 氣象預報 】"}, - {x_stock,0 , "SStock 【 股市行情 】"}, +/* XXX 壞掉了 */ +/* {x_stock,0 , "SStock 【 股市行情 】"},*/ #ifdef HAVE_BIG2 {x_big2, 0, "BBig2 【 網路大老二 】"}, #endif @@ -585,9 +585,4 @@ int Name_Menu() domenu(NMENU, "白色恐怖", 'O', namelist); return 0; } - - - - - diff --git a/mbbsd/var.c b/mbbsd/var.c index 2cca1e11..dfabe04a 100644 --- a/mbbsd/var.c +++ b/mbbsd/var.c @@ -1,4 +1,4 @@ -/* $Id: var.c,v 1.11 2002/07/21 09:26:02 in2 Exp $ */ +/* $Id: var.c,v 1.12 2002/09/04 12:54:51 kcwu Exp $ */ #define INCLUDE_VAR_H #include "bbs.h" @@ -551,7 +551,7 @@ commands_t cmdlist[] = { {Talk, 0, "TTalk 【 休閒聊天區 】"}, {User, 0, "UUser 【 個人設定區 】"}, {Xyz, 0, "XXyz 【 系統工具區 】"}, - {Play_Play, 0, "PPlay 【 遊樂場/大學查榜】"}, + {Play_Play, PERM_BASIC, "PPlay 【 遊樂場/大學查榜】"}, {Name_Menu, PERM_LOGINOK, "NNamelist 【 編特別名單 】"}, {Goodbye, 0, "GGoodbye 離開,再見……"}, {NULL, 0, NULL} |