Mercurial > pidgin.yaz
changeset 12211:cc917559894b
[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 <tailor@pidgin.im>
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Thu, 24 Nov 2005 15:14:00 +0000 |
parents | 5ae6ab7846a5 |
children | c9a943c60c33 |
files | src/protocols/msn/switchboard.c |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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);