Removed prof_handle_disconnect
This commit is contained in:
@@ -401,7 +401,13 @@ cmd_disconnect(gchar **args, struct cmd_help_t help)
|
|||||||
{
|
{
|
||||||
if (jabber_get_connection_status() == JABBER_CONNECTED) {
|
if (jabber_get_connection_status() == JABBER_CONNECTED) {
|
||||||
char *jid = strdup(jabber_get_fulljid());
|
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);
|
free(jid);
|
||||||
} else {
|
} else {
|
||||||
cons_show("You are not currently connected.");
|
cons_show("You are not currently connected.");
|
||||||
|
|||||||
@@ -140,18 +140,6 @@ prof_handle_roster_add(const char * const barejid, const char * const name)
|
|||||||
ui_current_page_off();
|
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
|
void
|
||||||
prof_handle_idle(void)
|
prof_handle_idle(void)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -28,7 +28,6 @@
|
|||||||
|
|
||||||
void prof_run(const int disable_tls, char *log_level, char *account_name);
|
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_roster(GSList *roster);
|
||||||
void prof_handle_idle(void);
|
void prof_handle_idle(void);
|
||||||
void prof_handle_activity(void);
|
void prof_handle_activity(void);
|
||||||
|
|||||||
Reference in New Issue
Block a user