summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-10-14 12:43:47 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-10-14 12:43:47 +0800
commit3fd44caace18608a40f67e6c911acc0c0eb9d5f4 (patch)
treefbe0c02bf8fe9f3acd77760d5a1a7a7dbec8538d
parentfab4c58b544c47d7d636ed68b8883753e75141b8 (diff)
downloadpttbbs-3fd44caace18608a40f67e6c911acc0c0eb9d5f4.tar
pttbbs-3fd44caace18608a40f67e6c911acc0c0eb9d5f4.tar.gz
pttbbs-3fd44caace18608a40f67e6c911acc0c0eb9d5f4.tar.bz2
pttbbs-3fd44caace18608a40f67e6c911acc0c0eb9d5f4.tar.lz
pttbbs-3fd44caace18608a40f67e6c911acc0c0eb9d5f4.tar.xz
pttbbs-3fd44caace18608a40f67e6c911acc0c0eb9d5f4.tar.zst
pttbbs-3fd44caace18608a40f67e6c911acc0c0eb9d5f4.zip
add mode CHESSWATCHING
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@1239 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/include/modes.h1
-rw-r--r--pttbbs/mbbsd/chc.c5
-rw-r--r--pttbbs/mbbsd/talk.c2
3 files changed, 7 insertions, 1 deletions
diff --git a/pttbbs/include/modes.h b/pttbbs/include/modes.h
index 8321fc8b..ca43900c 100644
--- a/pttbbs/include/modes.h
+++ b/pttbbs/include/modes.h
@@ -96,6 +96,7 @@
#define JCEE 78
#define REEDIT 79
#define BLOGGING 80
+#define CHESSWATCHING 81
/* menu.c 中的模式 */
#define QUIT 0x666 /* Return value to abort recursive functions */
diff --git a/pttbbs/mbbsd/chc.c b/pttbbs/mbbsd/chc.c
index 1fad931a..e6436d0c 100644
--- a/pttbbs/mbbsd/chc.c
+++ b/pttbbs/mbbsd/chc.c
@@ -853,7 +853,10 @@ chc_init(int s, chcusr_t *user1, chcusr_t *user2, board_t board, play_func_t pla
{
userinfo_t *my = currutmp;
- setutmpmode(CHC);
+ if (chc_mode & CHC_WATCH)
+ setutmpmode(CHESSWATCHING);
+ else
+ setutmpmode(CHC);
clear();
chc_warnmsg[0] = 0;
diff --git a/pttbbs/mbbsd/talk.c b/pttbbs/mbbsd/talk.c
index 9633570d..c3a9399b 100644
--- a/pttbbs/mbbsd/talk.c
+++ b/pttbbs/mbbsd/talk.c
@@ -137,6 +137,8 @@ modestring(userinfo_t * uentp, int simple)
snprintf(modestr, sizeof(modestr), "%s", "五子棋 空氣");
else
snprintf(modestr, sizeof(modestr), "%s %s", word, getuserid(uentp->destuid));
+ } else if (mode == CHESSWATCHING) {
+ snprintf(modestr, sizeof(modestr), "觀棋");
} else if (mode == CHC) {
if (isvisible_uid(uentp->destuid))
snprintf(modestr, sizeof(modestr), "%s", "下象棋");