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

Removed jabber_restart function

This commit is contained in:
James Booth 2013-02-03 22:56:23 +00:00
parent 2ee0c4d328
commit 9bc70e29e8
3 changed files with 4 additions and 10 deletions

View File

@ -233,7 +233,6 @@ prof_handle_disconnect(const char * const jid)
jabber_disconnect(); jabber_disconnect();
contact_list_clear(); contact_list_clear();
chat_sessions_clear(); chat_sessions_clear();
jabber_restart();
ui_disconnected(); ui_disconnected();
title_bar_set_status(PRESENCE_OFFLINE); title_bar_set_status(PRESENCE_OFFLINE);
status_bar_clear_message(); status_bar_clear_message();

View File

@ -96,14 +96,6 @@ jabber_init(const int disable_tls)
caps_init(); caps_init();
} }
void
jabber_restart(void)
{
jabber_conn.conn_status = JABBER_STARTED;
jabber_conn.presence_type = PRESENCE_OFFLINE;
FREE_SET_NULL(jabber_conn.presence_message);
}
jabber_conn_status_t jabber_conn_status_t
jabber_connect_with_account(ProfAccount *account, const char * const passwd) jabber_connect_with_account(ProfAccount *account, const char * const passwd)
{ {
@ -159,6 +151,10 @@ jabber_disconnect(void)
} }
connection_free_resources(); connection_free_resources();
} }
jabber_conn.conn_status = JABBER_STARTED;
jabber_conn.presence_type = PRESENCE_OFFLINE;
FREE_SET_NULL(jabber_conn.presence_message);
} }
void void

View File

@ -62,7 +62,6 @@ const char * jabber_get_jid(void);
jabber_conn_status_t jabber_get_connection_status(void); jabber_conn_status_t jabber_get_connection_status(void);
jabber_presence_t jabber_get_presence_type(void); jabber_presence_t jabber_get_presence_type(void);
char * jabber_get_presence_message(void); char * jabber_get_presence_message(void);
void jabber_restart(void);
void jabber_set_autoping(int seconds); void jabber_set_autoping(int seconds);
char* jabber_get_account_name(void); char* jabber_get_account_name(void);