comparison libpurple/connection.c @ 15810:d704829a07b2

This is tidier
author Stu Tomlinson <stu@nosnilmot.com>
date Sat, 17 Mar 2007 17:40:19 +0000
parents b25acae693cd
children 32c366eeeb99 ccc28043f423 5198bd455160
comparison
equal deleted inserted replaced
15809:b0d74443fa2a 15810:d704829a07b2
444 if (gc->disconnect_timeout) 444 if (gc->disconnect_timeout)
445 return; 445 return;
446 446
447 ops = gaim_connections_get_ui_ops(); 447 ops = gaim_connections_get_ui_ops();
448 448
449 if (ops != NULL) { 449 if (ops != NULL && ops->report_disconnect != NULL)
450 if (ops->report_disconnect != NULL) 450 ops->report_disconnect(gc, text);
451 ops->report_disconnect(gc, text);
452 }
453 451
454 gc->disconnect_timeout = gaim_timeout_add(0, gaim_connection_disconnect_cb, 452 gc->disconnect_timeout = gaim_timeout_add(0, gaim_connection_disconnect_cb,
455 gaim_connection_get_account(gc)); 453 gaim_connection_get_account(gc));
456 } 454 }
457 455