1
1
mirror of https://github.com/profanity-im/profanity.git synced 2025-02-02 15:08:15 -05:00

Removed prof_handle_disconnect

This commit is contained in:
James Booth 2014-01-05 22:00:15 +00:00
parent 922230acf5
commit 468e80fe30
3 changed files with 7 additions and 14 deletions

View File

@ -401,7 +401,13 @@ cmd_disconnect(gchar **args, struct cmd_help_t help)
{
if (jabber_get_connection_status() == JABBER_CONNECTED) {
char *jid = strdup(jabber_get_fulljid());
prof_handle_disconnect(jid);
cons_show("%s logged out successfully.", jid);
jabber_disconnect();
roster_clear();
muc_clear_invites();
chat_sessions_clear();
ui_disconnected();
ui_current_page_off();
free(jid);
} else {
cons_show("You are not currently connected.");

View File

@ -140,18 +140,6 @@ prof_handle_roster_add(const char * const barejid, const char * const name)
ui_current_page_off();
}
void
prof_handle_disconnect(const char * const jid)
{
cons_show("%s logged out successfully.", jid);
jabber_disconnect();
roster_clear();
muc_clear_invites();
chat_sessions_clear();
ui_disconnected();
ui_current_page_off();
}
void
prof_handle_idle(void)
{

View File

@ -28,7 +28,6 @@
void prof_run(const int disable_tls, char *log_level, char *account_name);
void prof_handle_disconnect(const char * const jid);
void prof_handle_roster(GSList *roster);
void prof_handle_idle(void);
void prof_handle_activity(void);