summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-07-27 21:14:41 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-07-27 21:14:41 +0800
commita76fd95c065aad3f13f9c274be95975a7bc8c4fa (patch)
tree1e69c169c870b8e5678eb35533859770278d3d43
parenta6a2335c3c3add32f384eb58112538f03ecb10e4 (diff)
downloadpttbbs-a76fd95c065aad3f13f9c274be95975a7bc8c4fa.tar
pttbbs-a76fd95c065aad3f13f9c274be95975a7bc8c4fa.tar.gz
pttbbs-a76fd95c065aad3f13f9c274be95975a7bc8c4fa.tar.bz2
pttbbs-a76fd95c065aad3f13f9c274be95975a7bc8c4fa.tar.lz
pttbbs-a76fd95c065aad3f13f9c274be95975a7bc8c4fa.tar.xz
pttbbs-a76fd95c065aad3f13f9c274be95975a7bc8c4fa.tar.zst
pttbbs-a76fd95c065aad3f13f9c274be95975a7bc8c4fa.zip
more specific `currstat' mode
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk@447 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/mbbsd/bbs.c6
-rw-r--r--pttbbs/mbbsd/mbbsd.c4
-rw-r--r--pttbbs/mbbsd/talk.c8
3 files changed, 9 insertions, 9 deletions
diff --git a/pttbbs/mbbsd/bbs.c b/pttbbs/mbbsd/bbs.c
index 84749b1c..c6615a0c 100644
--- a/pttbbs/mbbsd/bbs.c
+++ b/pttbbs/mbbsd/bbs.c
@@ -1,4 +1,4 @@
-/* $Id: bbs.c,v 1.66 2002/07/22 19:02:00 in2 Exp $ */
+/* $Id: bbs.c,v 1.67 2002/07/27 13:14:41 kcwu Exp $ */
#include "bbs.h"
static void
@@ -261,6 +261,7 @@ do_select(int ent, fileheader_t * fhdr, char *direct)
struct stat st;
int i;
+ setutmpmode(SELECT);
move(0, 0);
clrtoeol();
generalnamecomplete(MSG_SELECT_BOARD, bname, sizeof(bname),
@@ -1997,7 +1998,7 @@ ReadSelect()
int stat0 = currstat;
char genbuf[200];
- currstat = XMODE;
+ currstat = SELECT;
if (do_select(0, 0, genbuf) == NEWDIRECT)
Read();
setutmpbid(0);
@@ -2024,7 +2025,6 @@ Select()
{
char genbuf[200];
- setutmpmode(SELECT);
do_select(0, NULL, genbuf);
return 0;
}
diff --git a/pttbbs/mbbsd/mbbsd.c b/pttbbs/mbbsd/mbbsd.c
index 91800b4c..dcb4fd76 100644
--- a/pttbbs/mbbsd/mbbsd.c
+++ b/pttbbs/mbbsd/mbbsd.c
@@ -1,4 +1,4 @@
-/* $Id: mbbsd.c,v 1.46 2002/07/27 11:47:06 kcwu Exp $ */
+/* $Id: mbbsd.c,v 1.47 2002/07/27 13:14:41 kcwu Exp $ */
#include "bbs.h"
#define SOCKET_QLEN 4
@@ -408,7 +408,7 @@ write_request(int sig)
currutmp->mode = 0;
currutmp->chatid[0] = 2;
- currstat = XMODE;
+ currstat = HIT;
do {
bell();
diff --git a/pttbbs/mbbsd/talk.c b/pttbbs/mbbsd/talk.c
index 56b2b88b..b36aade9 100644
--- a/pttbbs/mbbsd/talk.c
+++ b/pttbbs/mbbsd/talk.c
@@ -1,4 +1,4 @@
-/* $Id: talk.c,v 1.81 2002/07/22 19:02:00 in2 Exp $ */
+/* $Id: talk.c,v 1.82 2002/07/27 13:14:41 kcwu Exp $ */
#include "bbs.h"
#define QCAST int (*)(const void *, const void *)
@@ -467,7 +467,7 @@ my_write2(void)
mode0 = currutmp->mode;
currutmp->mode = 0;
currutmp->chatid[0] = 3;
- currstat = XMODE;
+ currstat = DBACK;
//init screen
move(7, 28);
@@ -579,7 +579,7 @@ my_write(pid_t pid, char *prompt, char *id, int flag, userinfo_t * puin)
}
currutmp->mode = 0;
currutmp->chatid[0] = 3;
- currstat = XMODE;
+ currstat = DBACK;
ptime = localtime(&now);
@@ -2445,7 +2445,7 @@ talkreply(void)
snprintf(page_requestor, sizeof(page_requestor),
"%s (%s)", uip->userid, uip->username);
currutmp->destuid = uip->uid;
- currstat = XMODE; /* 避免出現動畫 */
+ currstat = REPLY; /* 避免出現動畫 */
clear();