# HG changeset patch # User Christian Hammond # Date 1086151831 0 # Node ID 43ea2b8581125114905391c30dba3f9c9869c434 # Parent 76125b842b231dd85a4d30b1efad82f985c9a324 [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 diff -r 76125b842b23 -r 43ea2b858112 src/protocols/msn/servconn.c --- 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); }