about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorWill Song <incertia9474@gmail.com>2015-01-08 10:02:30 -0600
committerWill Song <incertia9474@gmail.com>2015-01-08 10:02:30 -0600
commitf1641f3cf74fb71acbfca5e49d299f6cd786eccf (patch)
treefca75274985f3242b8a7f294c503e8869a5f1cd5 /src
parent30610f7c486a0a33910eda64aafb0acf715aafbe (diff)
downloadprofani-tty-f1641f3cf74fb71acbfca5e49d299f6cd786eccf.tar.gz
add exit title preference
Diffstat (limited to 'src')
-rw-r--r--src/config/preferences.c3
-rw-r--r--src/config/preferences.h3
2 files changed, 5 insertions, 1 deletions
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 {