summaryrefslogtreecommitdiffstats
path: root/mbbsd/talk.c
diff options
context:
space:
mode:
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("人家在忙啦");