mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-08-02 06:06:22 +00:00
Added lastactivity preference
This commit is contained in:
@@ -627,6 +627,7 @@ _get_group(preference_t pref)
|
|||||||
case PREF_AUTOAWAY_MODE:
|
case PREF_AUTOAWAY_MODE:
|
||||||
case PREF_AUTOAWAY_MESSAGE:
|
case PREF_AUTOAWAY_MESSAGE:
|
||||||
case PREF_AUTOXA_MESSAGE:
|
case PREF_AUTOXA_MESSAGE:
|
||||||
|
case PREF_LASTACTIVITY:
|
||||||
return PREF_GROUP_PRESENCE;
|
return PREF_GROUP_PRESENCE;
|
||||||
case PREF_CONNECT_ACCOUNT:
|
case PREF_CONNECT_ACCOUNT:
|
||||||
case PREF_DEFAULT_ACCOUNT:
|
case PREF_DEFAULT_ACCOUNT:
|
||||||
@@ -784,6 +785,8 @@ _get_key(preference_t pref)
|
|||||||
return "certpath";
|
return "certpath";
|
||||||
case PREF_TLS_SHOW:
|
case PREF_TLS_SHOW:
|
||||||
return "tls.show";
|
return "tls.show";
|
||||||
|
case PREF_LASTACTIVITY:
|
||||||
|
return "lastactivity";
|
||||||
default:
|
default:
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
@@ -821,6 +824,7 @@ _get_default_boolean(preference_t pref)
|
|||||||
case PREF_ROSTER_RESOURCE:
|
case PREF_ROSTER_RESOURCE:
|
||||||
case PREF_ROSTER_EMPTY:
|
case PREF_ROSTER_EMPTY:
|
||||||
case PREF_TLS_SHOW:
|
case PREF_TLS_SHOW:
|
||||||
|
case PREF_LASTACTIVITY:
|
||||||
return TRUE;
|
return TRUE;
|
||||||
default:
|
default:
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|||||||
@@ -113,6 +113,7 @@ typedef enum {
|
|||||||
PREF_PGP_LOG,
|
PREF_PGP_LOG,
|
||||||
PREF_CERT_PATH,
|
PREF_CERT_PATH,
|
||||||
PREF_TLS_SHOW,
|
PREF_TLS_SHOW,
|
||||||
|
PREF_LASTACTIVITY,
|
||||||
} preference_t;
|
} preference_t;
|
||||||
|
|
||||||
typedef struct prof_alias_t {
|
typedef struct prof_alias_t {
|
||||||
|
|||||||
Reference in New Issue
Block a user