diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-01-30 18:34:45 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-01-30 18:34:45 +0800 |
commit | 5abb8fa043dfbff8cb1077e98f1ee9a2d20d17b3 (patch) | |
tree | 796a5b4bf60316ce07c81cd291c294eb1bc10773 /mbbsd/more.c | |
parent | 6e8189ed25ad5beb1c5ad390af988403f0b4402a (diff) | |
download | pttbbs-5abb8fa043dfbff8cb1077e98f1ee9a2d20d17b3.tar pttbbs-5abb8fa043dfbff8cb1077e98f1ee9a2d20d17b3.tar.gz pttbbs-5abb8fa043dfbff8cb1077e98f1ee9a2d20d17b3.tar.bz2 pttbbs-5abb8fa043dfbff8cb1077e98f1ee9a2d20d17b3.tar.lz pttbbs-5abb8fa043dfbff8cb1077e98f1ee9a2d20d17b3.tar.xz pttbbs-5abb8fa043dfbff8cb1077e98f1ee9a2d20d17b3.tar.zst pttbbs-5abb8fa043dfbff8cb1077e98f1ee9a2d20d17b3.zip |
- improve registration process
- COPY2TMP and other pager functions now require BASIC permission
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3887 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/more.c')
-rw-r--r-- | mbbsd/more.c | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/mbbsd/more.c b/mbbsd/more.c index 6c5c1428..2cddc14c 100644 --- a/mbbsd/more.c +++ b/mbbsd/more.c @@ -27,15 +27,35 @@ int more(char *fpath, int promptend) vedit(fpath, NA, NULL); break; + case RET_COPY2TMP: + r = FULLUPDATE; + if (HasUserPerm(PERM_BASIC)) + { + char buf[10]; + getdata(b_lines - 1, 0, "把這篇文章收入到暫存檔?[y/N] ", + buf, 4, LCECHO); + if (buf[0] != 'y') + break; + setuserfile(buf, ask_tmpbuf(b_lines - 1)); + Copy(fpath, buf); + } + break; + case RET_DOCHESSREPLAY: r = FULLUPDATE; - ChessReplayGame(fpath); + if (HasUserPerm(PERM_BASIC)) + { + ChessReplayGame(fpath); + } break; #if defined(USE_BBSLUA) case RET_DOBBSLUA: r = FULLUPDATE; - bbslua(fpath); + if (HasUserPerm(PERM_BASIC)) + { + bbslua(fpath); + } break; #endif } |