about summary refs log tree commit diff stats
path: root/src/config
diff options
context:
space:
mode:
authorWill Song <incertia9474@gmail.com>2014-11-27 11:42:23 -0600
committerWill Song <incertia9474@gmail.com>2014-11-27 11:42:23 -0600
commitde9e621bb776b91aecfca02973fbfcbe16b38162 (patch)
tree6f02adff5cce85a428bb4875af15bc1343a13d67 /src/config
parent94bd9dbdfe7e7188e20bddf68565277630197822 (diff)
downloadprofani-tty-de9e621bb776b91aecfca02973fbfcbe16b38162.tar.gz
add default account property and commands associated with them
Diffstat (limited to 'src/config')
-rw-r--r--src/config/preferences.c3
-rw-r--r--src/config/preferences.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/src/config/preferences.c b/src/config/preferences.c
index baf3e853..4ae4e91d 100644
--- a/src/config/preferences.c
+++ b/src/config/preferences.c
@@ -521,6 +521,7 @@ _get_group(preference_t pref)
         case PREF_AUTOAWAY_MESSAGE:
             return PREF_GROUP_PRESENCE;
         case PREF_CONNECT_ACCOUNT:
+        case PREF_DEFAULT_ACCOUNT:
             return PREF_GROUP_CONNECTION;
         case PREF_OTR_WARN:
         case PREF_OTR_LOG:
@@ -602,6 +603,8 @@ _get_key(preference_t pref)
             return "autoaway.message";
         case PREF_CONNECT_ACCOUNT:
             return "account";
+        case PREF_DEFAULT_ACCOUNT:
+            return "defaccount";
         case PREF_OTR_LOG:
             return "log";
         case PREF_OTR_WARN:
diff --git a/src/config/preferences.h b/src/config/preferences.h
index d2a3fafd..5193455a 100644
--- a/src/config/preferences.h
+++ b/src/config/preferences.h
@@ -90,6 +90,7 @@ typedef enum {
     PREF_AUTOAWAY_MODE,
     PREF_AUTOAWAY_MESSAGE,
     PREF_CONNECT_ACCOUNT,
+    PREF_DEFAULT_ACCOUNT,
     PREF_LOG_ROTATE,
     PREF_LOG_SHARED,
     PREF_OTR_LOG,