1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-06-23 21:45:30 +00:00

Added lastactivity preference

This commit is contained in:
James Booth 2015-10-14 21:17:46 +01:00
parent aae526fbde
commit 8c9174b82f
2 changed files with 5 additions and 0 deletions

View File

@ -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;

View File

@ -113,6 +113,7 @@ typedef enum {
PREF_PGP_LOG,
PREF_CERT_PATH,
PREF_TLS_SHOW,
PREF_LASTACTIVITY,
} preference_t;
typedef struct prof_alias_t {