about summary refs log tree commit diff stats
path: root/src/config
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-04-13 21:56:35 +0100
committerJames Booth <boothj5@gmail.com>2014-04-13 21:56:51 +0100
commitc3418a290959a6b128c6224ccd01562850ae98c0 (patch)
tree33bc9b65c83cb96ce6f1466db263e00a04a2417d /src/config
parenta4a23fdf689608636e1d7fe049be081728f69e46 (diff)
downloadprofani-tty-c3418a290959a6b128c6224ccd01562850ae98c0.tar.gz
Added /log shared setting
Issue #170
Diffstat (limited to 'src/config')
-rw-r--r--src/config/preferences.c4
-rw-r--r--src/config/preferences.h3
2 files changed, 6 insertions, 1 deletions
diff --git a/src/config/preferences.c b/src/config/preferences.c
index 7327cd8e..9cc91cb6 100644
--- a/src/config/preferences.c
+++ b/src/config/preferences.c
@@ -394,6 +394,7 @@ _get_group(preference_t pref)
         case PREF_GRLOG:
         case PREF_OTR_LOG:
         case PREF_LOG_ROTATE:
+        case PREF_LOG_SHARED:
             return PREF_GROUP_LOGGING;
         case PREF_AUTOAWAY_CHECK:
         case PREF_AUTOAWAY_MODE:
@@ -467,6 +468,8 @@ _get_key(preference_t pref)
             return "otr.warn";
         case PREF_LOG_ROTATE:
             return "rotate";
+        case PREF_LOG_SHARED:
+            return "shared";
         default:
             return NULL;
     }
@@ -481,6 +484,7 @@ _get_default_boolean(preference_t pref)
         case PREF_OTR_WARN:
         case PREF_AUTOAWAY_CHECK:
         case PREF_LOG_ROTATE:
+        case PREF_LOG_SHARED:
             return TRUE;
         default:
             return FALSE;
diff --git a/src/config/preferences.h b/src/config/preferences.h
index 266fccc5..310b9032 100644
--- a/src/config/preferences.h
+++ b/src/config/preferences.h
@@ -63,7 +63,8 @@ typedef enum {
     PREF_CONNECT_ACCOUNT,
     PREF_OTR_LOG,
     PREF_OTR_WARN,
-    PREF_LOG_ROTATE
+    PREF_LOG_ROTATE,
+    PREF_LOG_SHARED
 } preference_t;
 
 typedef struct prof_alias_t {