about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/config/preferences.c4
-rw-r--r--src/config/preferences.h1
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 {