Save last activity to account on disconnect

This commit is contained in:
James Booth
2015-09-25 00:26:58 +01:00
parent 4257ecb1c5
commit b484411ea8
6 changed files with 22 additions and 0 deletions

View File

@@ -777,6 +777,7 @@ cmd_disconnect(ProfWin *window, const char * const command, gchar **args)
if (jabber_get_connection_status() == JABBER_CONNECTED) {
char *jid = strdup(jabber_get_fulljid());
cons_show("%s logged out successfully.", jid);
accounts_set_last_activity(jabber_get_account_name());
jabber_disconnect();
roster_clear();
muc_invites_clear();