summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-08-22 16:45:01 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-08-22 16:45:01 +0800
commit409daa963f7af0cacdddda9ef21211997cb085d7 (patch)
tree94096170074b01bea96de735b0db5ed04f1996de
parentcbcbd2d01d2fa76ea963d9a823abc95b01e5a576 (diff)
downloadpttbbs-409daa963f7af0cacdddda9ef21211997cb085d7.tar
pttbbs-409daa963f7af0cacdddda9ef21211997cb085d7.tar.gz
pttbbs-409daa963f7af0cacdddda9ef21211997cb085d7.tar.bz2
pttbbs-409daa963f7af0cacdddda9ef21211997cb085d7.tar.lz
pttbbs-409daa963f7af0cacdddda9ef21211997cb085d7.tar.xz
pttbbs-409daa963f7af0cacdddda9ef21211997cb085d7.tar.zst
pttbbs-409daa963f7af0cacdddda9ef21211997cb085d7.zip
fix last commit bug
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@1126 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/mbbsd/chc_play.c2
-rw-r--r--pttbbs/mbbsd/talk.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/pttbbs/mbbsd/chc_play.c b/pttbbs/mbbsd/chc_play.c
index d6a714cf..36992ae8 100644
--- a/pttbbs/mbbsd/chc_play.c
+++ b/pttbbs/mbbsd/chc_play.c
@@ -288,7 +288,7 @@ static void
chc_userinit(char *userid1, char *userid2, chcusr_t *user1, chcusr_t *user2, play_func_t play_func[2])
{
getuser(userid1);
- chcusr_get(&xuser, user2);
+ chcusr_get(&xuser, user1);
getuser(userid2);
chcusr_get(&xuser, user2);
diff --git a/pttbbs/mbbsd/talk.c b/pttbbs/mbbsd/talk.c
index e94bd9f4..3e2e4b39 100644
--- a/pttbbs/mbbsd/talk.c
+++ b/pttbbs/mbbsd/talk.c
@@ -1348,7 +1348,9 @@ my_talk(userinfo_t * uin, int fri_stat)
static void
self_play(userinfo_t * uin, int fri_stat)
{
- chc(0, CHC_PERSONAL);
+ move(1, 2);
+ if (getans("[象棋] 你確定要打譜嗎?[N/y]") == 'y')
+ chc(0, CHC_PERSONAL);
}
/* 選單式聊天介面 */