From f1641f3cf74fb71acbfca5e49d299f6cd786eccf Mon Sep 17 00:00:00 2001 From: Will Song Date: Thu, 8 Jan 2015 10:02:30 -0600 Subject: [PATCH] add exit title preference --- src/config/preferences.c | 3 +++ src/config/preferences.h | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/config/preferences.c b/src/config/preferences.c index 22e80874..c1e76f4a 100644 --- a/src/config/preferences.c +++ b/src/config/preferences.c @@ -647,6 +647,8 @@ _get_key(preference_t pref) return "roster.resource"; case PREF_ROSTER_BY: return "roster.by"; + case PREF_EXIT_TITLE: + return "exit.title"; default: return NULL; } @@ -669,6 +671,7 @@ _get_default_boolean(preference_t pref) case PREF_MUC_PRIVILEGES: case PREF_PRESENCE: case PREF_WRAP: + case PREF_EXIT_TITLE: return TRUE; default: return FALSE; diff --git a/src/config/preferences.h b/src/config/preferences.h index c8b206ef..3302cca5 100644 --- a/src/config/preferences.h +++ b/src/config/preferences.h @@ -95,7 +95,8 @@ typedef enum { PREF_LOG_SHARED, PREF_OTR_LOG, PREF_OTR_WARN, - PREF_OTR_POLICY + PREF_OTR_POLICY, + PREF_EXIT_TITLE, } preference_t; typedef struct prof_alias_t {