| 113 g_return_if_fail(gaim_connection_get_state(gc) != GAIM_DISCONNECTED); |
113 g_return_if_fail(gaim_connection_get_state(gc) != GAIM_DISCONNECTED); |
| 114 |
114 |
| 115 if (gaim_connection_get_state(gc) != GAIM_CONNECTING) |
115 if (gaim_connection_get_state(gc) != GAIM_CONNECTING) |
| 116 gaim_blist_remove_account(gaim_connection_get_account(gc)); |
116 gaim_blist_remove_account(gaim_connection_get_account(gc)); |
| 117 |
117 |
| |
118 serv_close(gc); |
| |
119 |
| |
120 gaim_connection_set_state(gc, GAIM_DISCONNECTED); |
| |
121 |
| 118 gaim_event_broadcast(event_signoff, gc); |
122 gaim_event_broadcast(event_signoff, gc); |
| 119 system_log(log_signoff, gc, NULL, OPT_LOG_BUDDY_SIGNON | OPT_LOG_MY_SIGNON); |
123 system_log(log_signoff, gc, NULL, OPT_LOG_BUDDY_SIGNON | OPT_LOG_MY_SIGNON); |
| 120 |
|
| 121 serv_close(gc); |
|
| 122 |
|
| 123 gaim_connection_set_state(gc, GAIM_DISCONNECTED); |
|
| 124 |
124 |
| 125 /* XXX Evil UI stuff!! */ |
125 /* XXX Evil UI stuff!! */ |
| 126 do_away_menu(); |
126 do_away_menu(); |
| 127 do_proto_menu(); |
127 do_proto_menu(); |
| 128 |
128 |