diff options
author | James Booth <boothj5@gmail.com> | 2015-10-14 21:17:46 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2015-10-14 21:17:46 +0100 |
commit | 8c9174b82f239f23dee3172c68429758900bbe5a (patch) | |
tree | 33a6ffe96cc917d5612ca0bd2c626f23cce9cd01 /src | |
parent | aae526fbde1d3436c2b77834e81910a67ca8825f (diff) | |
download | profani-tty-8c9174b82f239f23dee3172c68429758900bbe5a.tar.gz |
Added lastactivity preference
Diffstat (limited to 'src')
-rw-r--r-- | src/config/preferences.c | 4 | ||||
-rw-r--r-- | src/config/preferences.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/config/preferences.c b/src/config/preferences.c index 9aaa9083..746e76d4 100644 --- a/src/config/preferences.c +++ b/src/config/preferences.c @@ -627,6 +627,7 @@ _get_group(preference_t pref) case PREF_AUTOAWAY_MODE: case PREF_AUTOAWAY_MESSAGE: case PREF_AUTOXA_MESSAGE: + case PREF_LASTACTIVITY: return PREF_GROUP_PRESENCE; case PREF_CONNECT_ACCOUNT: case PREF_DEFAULT_ACCOUNT: @@ -784,6 +785,8 @@ _get_key(preference_t pref) return "certpath"; case PREF_TLS_SHOW: return "tls.show"; + case PREF_LASTACTIVITY: + return "lastactivity"; default: return NULL; } @@ -821,6 +824,7 @@ _get_default_boolean(preference_t pref) case PREF_ROSTER_RESOURCE: case PREF_ROSTER_EMPTY: case PREF_TLS_SHOW: + case PREF_LASTACTIVITY: return TRUE; default: return FALSE; diff --git a/src/config/preferences.h b/src/config/preferences.h index a0b3c06e..bf5f1e46 100644 --- a/src/config/preferences.h +++ b/src/config/preferences.h @@ -113,6 +113,7 @@ typedef enum { PREF_PGP_LOG, PREF_CERT_PATH, PREF_TLS_SHOW, + PREF_LASTACTIVITY, } preference_t; typedef struct prof_alias_t { |