summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-11-07 22:22:34 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-11-07 22:22:34 +0800
commit1147d7d6d94f8e2abd26187436d3f38a169e3010 (patch)
tree18f8c96eb417ad80a36c5e5b6b96fe724f8afa5c /mbbsd
parent76799f054e802bb6d1a4c10b1529ef8d4bb42b5f (diff)
downloadpttbbs-1147d7d6d94f8e2abd26187436d3f38a169e3010.tar
pttbbs-1147d7d6d94f8e2abd26187436d3f38a169e3010.tar.gz
pttbbs-1147d7d6d94f8e2abd26187436d3f38a169e3010.tar.bz2
pttbbs-1147d7d6d94f8e2abd26187436d3f38a169e3010.tar.lz
pttbbs-1147d7d6d94f8e2abd26187436d3f38a169e3010.tar.xz
pttbbs-1147d7d6d94f8e2abd26187436d3f38a169e3010.tar.zst
pttbbs-1147d7d6d94f8e2abd26187436d3f38a169e3010.zip
fix bug of help in (MODE_ETC | MODE_DIGEST) mode
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@562 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/read.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/mbbsd/read.c b/mbbsd/read.c
index ec7efeb4..cd0811e0 100644
--- a/mbbsd/read.c
+++ b/mbbsd/read.c
@@ -1,4 +1,4 @@
-/* $Id: read.c,v 1.14 2002/08/15 09:46:30 in2 Exp $ */
+/* $Id: read.c,v 1.15 2002/11/07 14:22:34 in2 Exp $ */
#include "bbs.h"
#define MAXPATHLEN 256
@@ -714,6 +714,8 @@ i_read_key(onekey_t * rcmdlist, keeploc_t * locmem, int ch, int bid)
case KEY_RIGHT:
ch = 'r';
default:
+ if( ch == 'h' && currmode & (MODE_ETC | MODE_DIGEST) )
+ return DONOTHING;
for (i = 0; rcmdlist[i].fptr; i++) {
if (rcmdlist[i].key == ch) {
mode = (*(rcmdlist[i].fptr)) (locmem->crs_ln,
@@ -721,9 +723,6 @@ i_read_key(onekey_t * rcmdlist, keeploc_t * locmem, int ch, int bid)
locmem->top_ln], currdirect);
break;
}
- if (rcmdlist[i].key == 'h')
- if (currmode & (MODE_ETC | MODE_DIGEST))
- return DONOTHING;
}
}
return mode;