about summary refs log tree commit diff stats
path: root/src/command
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-09-25 00:26:58 +0100
committerJames Booth <boothj5@gmail.com>2015-09-25 00:26:58 +0100
commitb484411ea8d94349c2879f09f48d907dbdaf72c9 (patch)
tree7598ecd667dfff306cb1c499f1efe6a7a9cabe6b /src/command
parent4257ecb1c50a00da2b40e018e1eb2dfa1a8d4a1b (diff)
downloadprofani-tty-b484411ea8d94349c2879f09f48d907dbdaf72c9.tar.gz
Save last activity to account on disconnect
Diffstat (limited to 'src/command')
-rw-r--r--src/command/commands.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/command/commands.c b/src/command/commands.c
index 3f695cc1..5ddfa07e 100644
--- a/src/command/commands.c
+++ b/src/command/commands.c
@@ -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();