add default account property and commands associated with them

This commit is contained in:
Will Song
2014-11-27 11:42:23 -06:00
parent 94bd9dbdfe
commit de9e621bb7
3 changed files with 35 additions and 0 deletions

View File

@@ -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:

View File

@@ -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,