summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/chc_play.c2
-rw-r--r--mbbsd/talk.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/mbbsd/chc_play.c b/mbbsd/chc_play.c
index d6a714cf..36992ae8 100644
--- a/mbbsd/chc_play.c
+++ b/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/mbbsd/talk.c b/mbbsd/talk.c
index e94bd9f4..3e2e4b39 100644
--- a/mbbsd/talk.c
+++ b/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);
}
/* 選單式聊天介面 */