diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-11-07 22:22:34 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-11-07 22:22:34 +0800 |
commit | 0e98301333915f6ad4a7caf99d3d90b8f448c928 (patch) | |
tree | 594b848e7094e96ae9f2971875d49f9f11bf1fb0 | |
parent | aa4fa070bc7e5a7ff1f06b0378d9337e18e5bc6a (diff) | |
download | pttbbs-0e98301333915f6ad4a7caf99d3d90b8f448c928.tar pttbbs-0e98301333915f6ad4a7caf99d3d90b8f448c928.tar.gz pttbbs-0e98301333915f6ad4a7caf99d3d90b8f448c928.tar.bz2 pttbbs-0e98301333915f6ad4a7caf99d3d90b8f448c928.tar.lz pttbbs-0e98301333915f6ad4a7caf99d3d90b8f448c928.tar.xz pttbbs-0e98301333915f6ad4a7caf99d3d90b8f448c928.tar.zst pttbbs-0e98301333915f6ad4a7caf99d3d90b8f448c928.zip |
fix bug of help in (MODE_ETC | MODE_DIGEST) mode
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk@562 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | pttbbs/mbbsd/read.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/pttbbs/mbbsd/read.c b/pttbbs/mbbsd/read.c index ec7efeb4..cd0811e0 100644 --- a/pttbbs/mbbsd/read.c +++ b/pttbbs/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; |