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
commite1fce65ed8fed7029b853401c3aa207ac5a6f2bd (patch)
tree7839a7c15453888842087b6a4b507bcfb2e61989
parent0c030c68c8459402fa279fa60f247eb7cb0aef75 (diff)
downloadpttbbs-e1fce65ed8fed7029b853401c3aa207ac5a6f2bd.tar
pttbbs-e1fce65ed8fed7029b853401c3aa207ac5a6f2bd.tar.gz
pttbbs-e1fce65ed8fed7029b853401c3aa207ac5a6f2bd.tar.bz2
pttbbs-e1fce65ed8fed7029b853401c3aa207ac5a6f2bd.tar.lz
pttbbs-e1fce65ed8fed7029b853401c3aa207ac5a6f2bd.tar.xz
pttbbs-e1fce65ed8fed7029b853401c3aa207ac5a6f2bd.tar.zst
pttbbs-e1fce65ed8fed7029b853401c3aa207ac5a6f2bd.zip
more specific `currstat' mode
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@447 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/bbs.c6
-rw-r--r--mbbsd/mbbsd.c4
-rw-r--r--mbbsd/talk.c8
3 files changed, 9 insertions, 9 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c
index 84749b1c..c6615a0c 100644
--- a/mbbsd/bbs.c
+++ b/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/mbbsd/mbbsd.c b/mbbsd/mbbsd.c
index 91800b4c..dcb4fd76 100644
--- a/mbbsd/mbbsd.c
+++ b/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/mbbsd/talk.c b/mbbsd/talk.c
index 56b2b88b..b36aade9 100644
--- a/mbbsd/talk.c
+++ b/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();