summaryrefslogtreecommitdiffstats
path: root/mbbsd/talk.c
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-09-28 22:27:18 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-09-28 22:27:18 +0800
commit6230fb38239610aafd4b8fc150268c3d09f192f5 (patch)
treed18196d2d3d6d186a61f5ec9c898e8585a042a50 /mbbsd/talk.c
parent0f8f0f046cb52622274f653b18f369fa1fe76075 (diff)
downloadpttbbs-6230fb38239610aafd4b8fc150268c3d09f192f5.tar
pttbbs-6230fb38239610aafd4b8fc150268c3d09f192f5.tar.gz
pttbbs-6230fb38239610aafd4b8fc150268c3d09f192f5.tar.bz2
pttbbs-6230fb38239610aafd4b8fc150268c3d09f192f5.tar.lz
pttbbs-6230fb38239610aafd4b8fc150268c3d09f192f5.tar.xz
pttbbs-6230fb38239610aafd4b8fc150268c3d09f192f5.tar.zst
pttbbs-6230fb38239610aafd4b8fc150268c3d09f192f5.zip
ask before watching a chc game.
fix wrong flow git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1208 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/talk.c')
-rw-r--r--mbbsd/talk.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/mbbsd/talk.c b/mbbsd/talk.c
index 2d07abcf..a576fbf4 100644
--- a/mbbsd/talk.c
+++ b/mbbsd/talk.c
@@ -1212,8 +1212,10 @@ my_talk(userinfo_t * uin, int fri_stat, char defact)
sock = make_connection_to_somebody(uin, 20);
if (sock < 0)
vmsg("無法建立連線");
- strlcpy(currutmp->mateid, uin->userid, sizeof(currutmp->mateid));
- chc(sock, CHC_WATCH);
+ else {
+ strlcpy(currutmp->mateid, uin->userid, sizeof(currutmp->mateid));
+ chc(sock, CHC_WATCH);
+ }
}
else
outs("人家在忙啦");