Moved disconnect code to profanity module

This commit is contained in:
James Booth
2012-11-19 22:23:48 +00:00
parent b3e1d473a2
commit 346ed2a8e8
3 changed files with 11 additions and 4 deletions

View File

@@ -215,6 +215,15 @@ prof_handle_failed_login(void)
log_info("disconnected");
}
void
prof_handle_disconnect(const char * const jid)
{
jabber_disconnect();
contact_list_clear();
jabber_restart();
cons_show("%s logged out successfully.", jid);
}
void
prof_handle_room_history(const char * const room_jid, const char * const nick,
GTimeVal tv_stamp, const char * const message)