summaryrefslogtreecommitdiffstats
path: root/mbbsd/talk.c
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-08-22 16:20:54 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-08-22 16:20:54 +0800
commitf2ff0a76f97deb1b9a27ff4d9f38b894bbf82287 (patch)
tree80f001c06ae265631a696ee7850cf81c43cdf132 /mbbsd/talk.c
parent0f90140b90bc8d2d448ab6ed0088f096b3b4a908 (diff)
downloadpttbbs-f2ff0a76f97deb1b9a27ff4d9f38b894bbf82287.tar
pttbbs-f2ff0a76f97deb1b9a27ff4d9f38b894bbf82287.tar.gz
pttbbs-f2ff0a76f97deb1b9a27ff4d9f38b894bbf82287.tar.bz2
pttbbs-f2ff0a76f97deb1b9a27ff4d9f38b894bbf82287.tar.lz
pttbbs-f2ff0a76f97deb1b9a27ff4d9f38b894bbf82287.tar.xz
pttbbs-f2ff0a76f97deb1b9a27ff4d9f38b894bbf82287.tar.zst
pttbbs-f2ff0a76f97deb1b9a27ff4d9f38b894bbf82287.zip
merge from my branch
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1124 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/talk.c')
-rw-r--r--mbbsd/talk.c23
1 files changed, 16 insertions, 7 deletions
diff --git a/mbbsd/talk.c b/mbbsd/talk.c
index 8246801b..e94bd9f4 100644
--- a/mbbsd/talk.c
+++ b/mbbsd/talk.c
@@ -1,4 +1,4 @@
-/* $Id: talk.c,v 1.112 2003/07/19 01:26:33 in2 Exp $ */
+/* $Id$ */
#include "bbs.h"
#define QCAST int (*)(const void *, const void *)
@@ -1292,7 +1292,7 @@ my_talk(userinfo_t * uin, int fri_stat)
gomoku(msgsock);
break;
case SIG_CHC:
- chc(msgsock);
+ chc(msgsock, CHC_VERSUS);
break;
case SIG_TALK:
default:
@@ -1345,6 +1345,12 @@ my_talk(userinfo_t * uin, int fri_stat)
pressanykey();
}
+static void
+self_play(userinfo_t * uin, int fri_stat)
+{
+ chc(0, CHC_PERSONAL);
+}
+
/* 選單式聊天介面 */
#define US_PICKUP 1234
#define US_RESORT 1233
@@ -2195,14 +2201,17 @@ userlist(void)
case 't':
if (HAS_PERM(PERM_LOGINOK)) {
+ move(1, 0);
+ clrtobot();
+ move(3, 0);
if (uentp->pid != currpid &&
strcmp(uentp->userid, cuser.userid) != 0) {
- move(1, 0);
- clrtobot();
- move(3, 0);
my_talk(uentp, fri_stat);
- redrawall = redraw = 1;
}
+ else{
+ self_play(uentp, fri_stat);
+ }
+ redrawall = redraw = 1;
}
break;
case 'K':
@@ -2605,7 +2614,7 @@ talkreply(void)
gomoku(a);
break;
case SIG_CHC:
- chc(a);
+ chc(a, CHC_VERSUS);
break;
case SIG_TALK:
default: