# HG changeset patch # User Stu Tomlinson # Date 1132845240 0 # Node ID cc917559894b562a502422593b8e2409973cc017 # Parent 5ae6ab7846a55600a4e733306276a09eaa5a1a3a [gaim-migrate @ 14513] If there are still un-acknowledged messages associated with the switchboard when it is destroyed, tell the user the message was not sent. This happens at least for messages containing the text 'download.php', '.scr' or '.pif', strangely case sensitive. The server abruptly closes the connection when encountering such messages (at the moment, maybe they don't filter messages at all times?) I've also seen some other un-acknowledged messages fail to go through that don't result in the swithboard being closed immediately, hopefully these will also now be reported. committer: Tailor Script diff -r 5ae6ab7846a5 -r cc917559894b src/protocols/msn/switchboard.c --- a/src/protocols/msn/switchboard.c Thu Nov 24 13:00:13 2005 +0000 +++ b/src/protocols/msn/switchboard.c Thu Nov 24 15:14:00 2005 +0000 @@ -99,8 +99,12 @@ g_queue_free(swboard->msg_queue); - for (l = swboard->ack_list; l != NULL; l = l->next) - msn_message_unref(l->data); + while((l = swboard->ack_list) != NULL) + { + msg = l->data; + msg_error_helper(swboard->cmdproc, msg, MSN_MSG_ERROR_SB); + msn_message_unref(msg); + } if (swboard->im_user != NULL) g_free(swboard->im_user);