summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-08-28 05:49:18 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-08-28 05:49:18 +0800
commit6053ebd7b8ea66bd915590130737ff8d4edb0261 (patch)
tree2b45a654423c040a7df2f1e058fb8e6a3fe2fc40
parent531dfe7dbfb67e2aef5598ea80da034a2fcf70eb (diff)
downloadpttbbs-6053ebd7b8ea66bd915590130737ff8d4edb0261.tar
pttbbs-6053ebd7b8ea66bd915590130737ff8d4edb0261.tar.gz
pttbbs-6053ebd7b8ea66bd915590130737ff8d4edb0261.tar.bz2
pttbbs-6053ebd7b8ea66bd915590130737ff8d4edb0261.tar.lz
pttbbs-6053ebd7b8ea66bd915590130737ff8d4edb0261.tar.xz
pttbbs-6053ebd7b8ea66bd915590130737ff8d4edb0261.tar.zst
pttbbs-6053ebd7b8ea66bd915590130737ff8d4edb0261.zip
when enter menu, relocate position first
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@502 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--include/modes.h4
-rw-r--r--mbbsd/menu.c4
2 files changed, 5 insertions, 3 deletions
diff --git a/include/modes.h b/include/modes.h
index fe3a6b79..cc12b3d5 100644
--- a/include/modes.h
+++ b/include/modes.h
@@ -1,4 +1,4 @@
-/* $Id: modes.h,v 1.1 2002/03/07 15:13:48 in2 Exp $ */
+/* $Id: modes.h,v 1.2 2002/08/27 21:49:18 kcwu Exp $ */
#ifndef INCLUDE_MODES_H
#define INCLUDE_MODES_H
@@ -57,7 +57,7 @@
#define MAILALL 39
#define MJ 40
#define P_FRIEND 41
-#define LOGIN 42 /* main menu */
+#define LOGIN 42 /* main menu *//* 所有其他選單動態須在此之前 */
#define DICT 43
#define BRIDGE 44
#define ARCHIE 45
diff --git a/mbbsd/menu.c b/mbbsd/menu.c
index f4d28259..755a4319 100644
--- a/mbbsd/menu.c
+++ b/mbbsd/menu.c
@@ -1,4 +1,4 @@
-/* $Id: menu.c,v 1.17 2002/07/27 10:05:56 kcwu Exp $ */
+/* $Id: menu.c,v 1.18 2002/08/27 21:49:18 kcwu Exp $ */
#include "bbs.h"
/* help & menu processring */
@@ -187,6 +187,8 @@ domenu(int cmdmode, char *cmdtitle, int cmd, commands_t cmdtable[])
if (cmd0[cmdmode])
cmd = cmd0[cmdmode];
+ else
+ cmd = KEY_HOME;
setutmpmode(cmdmode);