Mercurial > pidgin
comparison src/protocols/msn/servconn.c @ 9088:9883e3398e37
[gaim-migrate @ 9865]
If we get an error in a switchboard, don't disconnect. Instead, display the
error and keep our connection alive.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Thu, 27 May 2004 06:34:38 +0000 |
parents | ffecda0c1f45 |
children | 9e5a709c30a8 |
comparison
equal
deleted
inserted
replaced
9087:f32ee2e97b37 | 9088:9883e3398e37 |
---|---|
198 char *tmp; | 198 char *tmp; |
199 char *cmd; | 199 char *cmd; |
200 | 200 |
201 const char *names[] = { "Notification", "Switchboard" }; | 201 const char *names[] = { "Notification", "Switchboard" }; |
202 const char *name; | 202 const char *name; |
203 | 203 |
204 gc = gaim_account_get_connection(servconn->session->account); | 204 gc = gaim_account_get_connection(servconn->session->account); |
205 name = names[servconn->type]; | 205 name = names[servconn->type]; |
206 | 206 |
207 switch (servconn->cmdproc->error) | 207 switch (servconn->cmdproc->error) |
208 { | 208 { |
221 default: | 221 default: |
222 tmp = g_strdup_printf(_("Unknown error from %s server"), name); | 222 tmp = g_strdup_printf(_("Unknown error from %s server"), name); |
223 break; | 223 break; |
224 } | 224 } |
225 | 225 |
226 gaim_connection_error(gc, tmp); | 226 if (servconn->type != MSN_SERVER_SB) |
227 | 227 gaim_connection_error(gc, tmp); |
228 else | |
229 gaim_notify_error(gc, NULL, tmp, NULL); | |
230 | |
228 g_free(tmp); | 231 g_free(tmp); |
229 } | 232 } |
230 | 233 |
231 static void | 234 static void |
232 failed_io(MsnServConn *servconn) | 235 failed_io(MsnServConn *servconn) |