Mercurial > pidgin.yaz
changeset 9165:43ea2b858112
[gaim-migrate @ 9950]
Patch by Felipe Contreras, and modified slightly by me to prevent
disconnects on Switchboard errors in MSN. Now, it just displays the error
dialog for switchboards, but keeps the disconnects for everything else. I
was sure I committed this before 0.78, but something happened. *baffled*
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Wed, 02 Jun 2004 04:50:31 +0000 |
parents | 76125b842b23 |
children | 1e51236d825e |
files | src/protocols/msn/servconn.c |
diffstat | 1 files changed, 14 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/protocols/msn/servconn.c Wed Jun 02 03:02:50 2004 +0000 +++ b/src/protocols/msn/servconn.c Wed Jun 02 04:50:31 2004 +0000 @@ -34,7 +34,7 @@ const char *names[] = { "Notification", "Switchboard" }; const char *name; - + gc = gaim_account_get_connection(servconn->session->account); name = names[servconn->type]; @@ -57,8 +57,19 @@ break; } - gaim_connection_error(gc, tmp); - + if (servconn->type != MSN_SERVER_SB) + gaim_connection_error(gc, tmp); + else + { + GaimAccount *account = gaim_connection_get_account(gc); + char *primary = g_strdup_printf(_("MSN error for account %s"), + gaim_account_get_username(account)); + + gaim_notify_error(gc, NULL, primary, tmp); + + g_free(primary); + } + g_free(tmp); }