Allow "account" setting in [connection] to autconnect the account

closes #251
This commit is contained in:
James Booth
2013-11-07 23:04:12 +00:00
parent 2fa8da493e
commit 2b0108e6cc
6 changed files with 53 additions and 2 deletions

View File

@@ -309,6 +309,8 @@ _get_group(preference_t pref)
case PREF_AUTOAWAY_MODE:
case PREF_AUTOAWAY_MESSAGE:
return "presence";
case PREF_CONNECT_ACCOUNT:
return "connection";
default:
return NULL;
}
@@ -361,6 +363,8 @@ _get_key(preference_t pref)
return "autoaway.mode";
case PREF_AUTOAWAY_MESSAGE:
return "autoaway.message";
case PREF_CONNECT_ACCOUNT:
return "account";
default:
return NULL;
}

View File

@@ -56,7 +56,8 @@ typedef enum {
PREF_GRLOG,
PREF_AUTOAWAY_CHECK,
PREF_AUTOAWAY_MODE,
PREF_AUTOAWAY_MESSAGE
PREF_AUTOAWAY_MESSAGE,
PREF_CONNECT_ACCOUNT
} preference_t;
void prefs_load(void);