1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Losing connection shows 'offline' in ui

This commit is contained in:
James Booth 2013-02-03 23:06:06 +00:00
parent 9bc70e29e8
commit 3c9155be2c
2 changed files with 15 additions and 16 deletions

View File

@ -207,37 +207,32 @@ prof_handle_gone(const char * const from)
win_current_page_off();
}
void
prof_handle_lost_connection(void)
{
cons_bad_show("Lost connection.");
log_info("Lost connection");
contact_list_clear();
ui_disconnected();
win_current_page_off();
log_info("disconnected");
}
void
prof_handle_failed_login(void)
{
cons_bad_show("Login failed.");
log_info("Login failed");
win_current_page_off();
log_info("disconnected");
}
void
prof_handle_lost_connection(void)
{
cons_bad_show("Lost connection.");
contact_list_clear();
chat_sessions_clear();
ui_disconnected();
win_current_page_off();
}
void
prof_handle_disconnect(const char * const jid)
{
cons_show("%s logged out successfully.", jid);
jabber_disconnect();
contact_list_clear();
chat_sessions_clear();
ui_disconnected();
title_bar_set_status(PRESENCE_OFFLINE);
status_bar_clear_message();
status_bar_refresh();
cons_show("%s logged out successfully.", jid);
win_current_page_off();
}

View File

@ -505,6 +505,10 @@ ui_disconnected(void)
}
}
}
title_bar_set_status(PRESENCE_OFFLINE);
status_bar_clear_message();
status_bar_refresh();
}
void