comparison src/protocols/msn/msn.c @ 6149:6f4979d8cc3c

[gaim-migrate @ 6623] I claim this will fix another bug where you can't close the MSN chat window. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Wed, 16 Jul 2003 06:41:30 +0000
parents 82e7eaa67406
children 36897deb064b
comparison
equal deleted inserted replaced
6148:82e7eaa67406 6149:6f4979d8cc3c
952 { 952 {
953 MsnSession *session = gc->proto_data; 953 MsnSession *session = gc->proto_data;
954 MsnSwitchBoard *swboard = msn_session_find_switch_with_id(session, id); 954 MsnSwitchBoard *swboard = msn_session_find_switch_with_id(session, id);
955 char buf[6]; 955 char buf[6];
956 956
957 if (swboard == NULL) 957 if (swboard == NULL) {
958 return; 958 serv_got_chat_left(gc, id);
959 return;
960 }
959 961
960 strcpy(buf, "OUT\r\n"); 962 strcpy(buf, "OUT\r\n");
961 963
962 if (!msn_servconn_write(swboard->servconn, buf, strlen(buf))) 964 if (!msn_servconn_write(swboard->servconn, buf, strlen(buf)))
963 msn_switchboard_destroy(swboard); 965 msn_switchboard_destroy(swboard);