static void _shutdown(void) { ui_clear_win_title(); ui_close_all_wins(); jabber_disconnect(); jabber_shutdown(); roster_free(); muc_close(); caps_close(); ui_close(); #ifdef HAVE_LIBOTR otr_shutdown(); #endif chat_log_close(); prefs_close(); theme_close(); accounts_close(); cmd_uninit(); log_close(); }
static void _shutdown(void) { if (prefs_get_boolean(PREF_WINTITLE_SHOW)) { if (prefs_get_boolean(PREF_WINTITLE_GOODBYE)) { ui_goodbye_title(); } else { ui_clear_win_title(); } } jabber_conn_status_t conn_status = connection_get_status(); if (conn_status == JABBER_CONNECTED) { cl_ev_disconnect(); } #ifdef HAVE_GTK tray_shutdown(); #endif session_shutdown(); plugins_on_shutdown(); muc_close(); caps_close(); #ifdef HAVE_LIBOTR otr_shutdown(); #endif #ifdef HAVE_LIBGPGME p_gpg_close(); #endif chat_log_close(); theme_close(); accounts_close(); tlscerts_close(); log_stderr_close(); log_close(); plugins_shutdown(); cmd_uninit(); ui_close(); prefs_close(); }